AW: doubts about tree control

2006-06-05 Thread andreas.mitter
I not sure if it works(because I have never used tree2), but I would try the 
following:

In the h:commandLink take the action parameter instead of the actionListener..

This action parameter points to the method selectNode withs returns a String...

public String selectNode(){

...
return navigationstring;
}

In your faces-config.xml you do your navigation like the following:

  
   navigationString
   /a.jsp
  
  
   navigationString2
   /b.jsp
  
and so on...


Regards,
Andy

-Ursprüngliche Nachricht-
Von: sarma [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 5. Juni 2006 06:32
An: users@myfaces.apache.org
Betreff: doubts about tree control



Hi there,

I am using myfaces tree2 and want to be able to select a node that is
clicked from a tree and then forward to another JSP page that will have
details of the node on it. I have finally managed to work out how to select
the node, but am now wondering how I can navigate to the next page.

node
 a
 b
 c

if i clicked on a i have to  a.jsp
if i clicked on b i hava e to b.jsp
if i clicked on c i havae to in c.jsp












   


Snippet from backing bean

public void selectNode(ActionEvent event)
{
log.debug("ActionEvent: " + event);
 
UIComponent component = (UIComponent) event.getSource();
while (!(component != null && component instanceof HtmlTree))
{
component = component.getParent();
}
if (component != null)
{
HtmlTree tree = (HtmlTree) component;
TreeNodeBase node = (TreeNodeBase) tree.getNode();
tree.setNodeSelected(event);
 
// how do I now forward to another JSP?
   if(a selected)
a.jsp
   if(b selected)
   b.jsp
  if(c selected)
  c.jsp
}
}
 
please give the solution .  mail me to [EMAIL PROTECTED]

with regards
shannu sarma
--
View this message in context: 
http://www.nabble.com/doubts-about-tree-control-t176.html#a4709850
Sent from the MyFaces - Users forum at Nabble.com.




This message is not legally binding upon our company!
This communication is confidential and is intended solely for the addressee(s). 
If you are not the intended recipient(s), his/her assistant, or authorized 
recipient, any form of disclosure, reproduction, distribution or any use of 
this communication or the information in it, is strictly prohibited and may be 
unlawful. In this case, please notify the sender immediately and destroy the 
e-mail. Electronic communication via the Internet by e-mail may be manipulated 
and/or read by third parties, thus we exclude any liability whatsoever for this 
e-mail.



java.io.NotSerializableException: javax.faces.model.ListDataModel

2006-06-02 Thread andreas.mitter
Title: java.io.NotSerializableException: javax.faces.model.ListDataModel







Hi Guys!



Is it not possible to serialize a ListDataModel. I need to write a ListDataModel to saveState, but it doesn't work...

I get the following stack:

java.io.NotSerializableException: javax.faces.model.ListDataModel

    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)

    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1224)

    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050)

    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1224)

    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050)

    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)

    at java.util.ArrayList.writeObject(ArrayList.java:531)

    at sun.reflect.GeneratedMethodAccessor150.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:324)

    at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809)

    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)

    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)

    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)

    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1224)

    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050)

    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)

    at java.util.ArrayList.writeObject(ArrayList.java:531)

...



Thx for help!


Regards,

Andy





This message is not legally binding upon our company!
This communication is confidential and is intended solely for the addressee(s). If you are not the intended recipient(s), his/her assistant, or authorized recipient, any form of disclosure, reproduction, distribution or any use of this communication or the information in it, is strictly prohibited and may be unlawful. In this case, please notify the sender immediately and destroy the e-mail. Electronic communication via the Internet by e-mail may be manipulated and/or read by third parties, thus we exclude any liability whatsoever for this e-mail.




AW: IDE jsf

2006-06-01 Thread andreas.mitter



You 
think Exadel is unstable? I'm working with it since months and never had 
problems... Which version do you use?
 
Other 
IDEs are:
SUN 
Creator 2 -->free
NitroX 

 
Just 
google
 
Regards,
Andy

  -Ursprüngliche Nachricht-Von: Alberto Marquÿe9s 
  [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 1. Juni 2006 
  11:58An: MyFaces DiscussionBetreff: IDE 
  jsfHello somebody knows an IDE jsf, I practice and stable 
  that is not exadel please I am working with and is very very unstable. thanks
  
  
  LLama Gratis a cualquier PC del 
  Mundo.Llamadas a fijos y móviles desde 1 céntimo por minuto.http://es.voice.yahoo.com


This message is not legally binding upon our company!
This communication is confidential and is intended solely for the addressee(s). If you are not the intended recipient(s), his/her assistant, or authorized recipient, any form of disclosure, reproduction, distribution or any use of this communication or the information in it, is strictly prohibited and may be unlawful. In this case, please notify the sender immediately and destroy the e-mail. Electronic communication via the Internet by e-mail may be manipulated and/or read by third parties, thus we exclude any liability whatsoever for this e-mail.




AW: SaveState Problems

2006-05-31 Thread andreas.mitter
Title: T:SaveState Problems



Perhaps my question was a bit misunderstandig.
Generally how long does T:SaveState survive and is it possible to 
kill the value in it manuelly?
 
Regards,
Andy

  -Ursprüngliche Nachricht-Von: Mitter Andreas, ISX 
  Gesendet: Dienstag, 30. Mai 2006 10:52An: 
  users@myfaces.apache.orgBetreff: T:SaveState 
  Problems
  Hi Guys! 
  I have problems with t:savestate. I have a 
  Datatable which I put into t:savestate... This datatable represents a list of 
  records from the database. In each column of the datatable there is a Button 
  to delete each record.
  The problem is, that the record is deleted normally 
  (when the button is pressed) but the view isn't updated, although I ran 
  through the method which should update the view... (there the datatable is 
  read again from the database)
  I think it has to do with t:savestate... 
  Is there a chance to kill the value in t:savestate 
  and then reload it again? 
  Regards, Andy This message is not legally binding upon our 
  company! This communication is confidential and is intended solely for the 
  addressee(s). If you are not the intended recipient(s), his/her assistant, or 
  authorized recipient, any form of disclosure, reproduction, distribution or 
  any use of this communication or the information in it, is strictly prohibited 
  and may be unlawful. In this case, please notify the sender immediately and 
  destroy the e-mail. Electronic communication via the Internet by e-mail may be 
  manipulated and/or read by third parties, thus we exclude any liability 
  whatsoever for this e-mail. 


This message is not legally binding upon our company!
This communication is confidential and is intended solely for the addressee(s). If you are not the intended recipient(s), his/her assistant, or authorized recipient, any form of disclosure, reproduction, distribution or any use of this communication or the information in it, is strictly prohibited and may be unlawful. In this case, please notify the sender immediately and destroy the e-mail. Electronic communication via the Internet by e-mail may be manipulated and/or read by third parties, thus we exclude any liability whatsoever for this e-mail.




AW: java.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.util.DummyFormUtils.findNestingForm

2006-05-30 Thread andreas.mitter
Yes I have removed everything, also in the Work Directory from Tomcat...
Only the myfaces-commons.jar is still there, because I need this jar because of 
the class MessageUtils.

Regards,
Andy

-Ursprüngliche Nachricht-
Von: Ondrej Svetlik [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 30. Mai 2006 11:52
An: MyFaces Discussion
Betreff: Re: java.lang.NoSuchMethodError:
org.apache.myfaces.renderkit.html.util.DummyFormUtils.findNestingForm


[EMAIL PROTECTED] wrote:
> 
>   Hi Guys!
> 
> 
>   I just tried to migrate from MyFaces 1.1.1 to 1.1.3 with Tomahawk
>   1.1.2...
>   But I get the following error when starting the whole thing:
> 
>   java.lang.NoSuchMethodError:
>   org.apache.myfaces.renderkit.html.util.DummyFormUtils.findNestingForm
>   
> (Ljavax/faces/component/UIComponent;Ljavax/faces/context/FacesContext;)Lorg/apache/myfaces/shared_tomahawk/renderkit/html/util/FormInfo;
> 
>   at
>   
> org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer.findNestingForm(_DummyFormHtmlLinkRenderer.java:49_)
> 
>   at
>   
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase.renderJavaScriptAnchorStart(_HtmlLinkRendererBase.java:206_)
> 
>   at
>   
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase.renderCommandLinkStart(_HtmlLinkRendererBase.java:175_)
> 
>   at
>   
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase.encodeBegin(_HtmlLinkRendererBase.java:93_)
> 
>   at
>   
> javax.faces.component.UIComponentBase.encodeBegin(_UIComponentBase.java:512_)
> 
>   at
>   javax.faces.webapp.UIComponentTag.encodeBegin(_UIComponentTag.java:464_)
> 
>   at
>   javax.faces.webapp.UIComponentTag.doEndTag(_UIComponentTag.java:360_)
>   at
>   
> org.apache.jsp.login_jsp._jspx_meth_h_commandLink_0(org.apache.jsp.login_jsp:864)
> 
>   at
>   
> org.apache.jsp.login_jsp._jspx_meth_h_form_1(org.apache.jsp.login_jsp:589)
> 
>   at
>   
> org.apache.jsp.login_jsp._jspx_meth_f_view_0(org.apache.jsp.login_jsp:292)
> 
>   at
>   org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:223)
>   at
>   org.apache.jasper.runtime.HttpJspBase.service(_HttpJspBase.java:97_)
>   at
>   javax.servlet.http.HttpServlet.service(_HttpServlet.java:802_)
>   at
>   
> org.apache.jasper.servlet.JspServletWrapper.service(_JspServletWrapper.java:332_)
> 
>   at
>   
> org.apache.jasper.servlet.JspServlet.serviceJspFile(_JspServlet.java:314_)
> 
>   at
>   org.apache.jasper.servlet.JspServlet.service(_JspServlet.java:264_)
>   at
>   javax.servlet.http.HttpServlet.service(_HttpServlet.java:802_)
>   at
>   
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(_ApplicationFilterChain.java:252_)
> 
>   at
>   
> org.apache.catalina.core.ApplicationFilterChain.doFilter(_ApplicationFilterChain.java:173_)
> 
>   at
>   
> org.apache.catalina.core.ApplicationDispatcher.invoke(_ApplicationDispatcher.java:672_)
> 
>   at
>   
> org.apache.catalina.core.ApplicationDispatcher.processRequest(_ApplicationDispatcher.java:463_)
> 
>   at
>   
> org.apache.catalina.core.ApplicationDispatcher.doForward(_ApplicationDispatcher.java:398_)
> 
>   at
>   
> org.apache.catalina.core.ApplicationDispatcher.forward(_ApplicationDispatcher.java:301_)
> 
>   at
>   
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(_ServletExternalContextImpl.java:416_)
> 
>   at
>   
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(_JspViewHandlerImpl.java:234_)
> 
>   at
>   
> org.jenia.faces.template.handler.ViewHandler.renderView(_ViewHandler.java:74_)
> 
>   at
>   
> org.apache.myfaces.lifecycle.LifecycleImpl.render(_LifecycleImpl.java:384_)
> 
>   at
>   javax.faces.webapp.FacesServlet.service(_FacesServlet.java:138_)
>   at
>   
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(_ApplicationFilterChain.java:252_)
> 
>   at
>   
> org.apache.catalina.core.ApplicationFilterChain.doFilter(_ApplicationFilterChain.java:173_)
> 
>   at
>   
> org.apache.catalina.core.ApplicationDispatcher.invoke(_ApplicationDispatcher.java:672_)
> 
>   at
>   
> org.apache.catalina.core.ApplicationDispatcher.processRequest(_ApplicationDispatcher.java:463_)
> 
>   at
>   
> org.apache.catalina.core.ApplicationDispatcher.doForward(_ApplicationDispatcher.java:398_)
> 
>   at
>   
> org.apache.catalina.core.ApplicationDispatcher.forward(_ApplicationDispatcher.java:301_)
> 
>   at
>   

AW: java.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.util.

2006-05-30 Thread andreas.mitter
I don't think that my web.xml is wrong, because I use the same web.xml in 
MyFaces 1.1.1.
Or do I have to change something in 1.1.3?

Regards,
Andy

-Ursprüngliche Nachricht-
Von: chandra sekhar saripaka [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 30. Mai 2006 11:42
An: MyFaces Discussion
Betreff: Re: java.lang.NoSuchMethodError:
org.apache.myfaces.renderkit.html.util.


Hi,
 If you can check with the spaces provoded in the web-app tag
between the attributes, I think you will be able to solve your error.

Chandru.

On 5/30/06, laguiz <[EMAIL PROTECTED]> wrote:
>
> I have same probleme !
> I have this in m'y web.xml :
>
> 
> http://java.sun.com/xml/ns/javaee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
>
>
>
>com.sun.faces.verifyObjects
>false
>
>
>com.sun.faces.validateXml
>true
>
>
>javax.faces.CONFIG_FILES
>/WEB-INF/faces-config.xml
>
>
>javax.faces.STATE_SAVING_METHOD
>client
>
>
>
>
>Faces Servlet
>javax.faces.webapp.FacesServlet
>1
>
>
>
>Faces Servlet
>/faces/*
>
>
>
>
>
>
>
> org.apache.myfaces.webapp.StartupServletContextListener
>
>
>
>
>
>
>Administration
>/faces/*
>GET
>POST
>
>
>
>AdminUser
>
>
>
>NONE
>
>
>
>
>
>
>Application
>/faces/listUser.jsp
>GET
>POST
>
>
>
>AdminUser
>RegularUser
>
>
>
>NONE
>
>
>
>
>
>Authorized to access everything.
>AdminUser
>
>
>Authorized to limited access.
>RegularUser
>
>
>
>
>FORM
>
>
>/faces/login.jsp
>/faces/error.jsp
>
>
>
>
>
>
>
>
>MyFacesExtensionsFilter
>
> org.apache.myfaces.webapp.filter.ExtensionsFilter
>
>maxFileSize
>20m
>
>
>
>
>
>MyFacesExtensionsFilter
>
>Faces Servlet
>
>
>
>
>MyFacesExtensionsFilter
>/faces/myFacesExtensionResource/*
>
>
>
> 
> --
> View this message in context: 
> http://www.nabble.com/java.lang.NoSuchMethodError%3A+org.apache.myfaces.renderkit.html.util.DummyFormUtils.findNestingForm-t1700141.html#a4623227
> Sent from the MyFaces - Users forum at Nabble.com.
>
>




This message is not legally binding upon our company!
This communication is confidential and is intended solely for the addressee(s). 
If you are not the intended recipient(s), his/her assistant, or authorized 
recipient, any form of disclosure, reproduction, distribution or any use of 
this communication or the information in it, is strictly prohibited and may be 
unlawful. In this case, please notify the sender immediately and destroy the 
e-mail. Electronic communication via the Internet by e-mail may be manipulated 
and/or read by third parties, thus we exclude any liability whatsoever for this 
e-mail.



T:SaveState Problems

2006-05-30 Thread andreas.mitter
Title: T:SaveState Problems






Hi Guys!



I have problems with t:savestate. I have a Datatable which I put into t:savestate... This datatable represents a list of records from the database. In each column of the datatable there is a Button to delete each record.

The problem is, that the record is deleted normally (when the button is pressed) but the view isn't updated, although I ran through the method which should update the view... (there the datatable is read again from the database)

I think it has to do with t:savestate...

Is there a chance to kill the value in t:savestate and then reload it again?


Regards,

Andy





This message is not legally binding upon our company!
This communication is confidential and is intended solely for the addressee(s). If you are not the intended recipient(s), his/her assistant, or authorized recipient, any form of disclosure, reproduction, distribution or any use of this communication or the information in it, is strictly prohibited and may be unlawful. In this case, please notify the sender immediately and destroy the e-mail. Electronic communication via the Internet by e-mail may be manipulated and/or read by third parties, thus we exclude any liability whatsoever for this e-mail.




java.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.util.DummyFormUtils.findNestingForm

2006-05-29 Thread andreas.mitter
Title: java.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.util.DummyFormUtils.findNestingForm







Hi Guys!



I just tried to migrate from MyFaces 1.1.1 to 1.1.3 with Tomahawk 1.1.2...

But I get the following error when starting the whole thing:


java.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.util.DummyFormUtils.findNestingForm

(Ljavax/faces/component/UIComponent;Ljavax/faces/context/FacesContext;)Lorg/apache/myfaces/shared_tomahawk/renderkit/html/util/FormInfo;

    at org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer.findNestingForm(DummyFormHtmlLinkRenderer.java:49)

    at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase.renderJavaScriptAnchorStart(HtmlLinkRendererBase.java:206)

    at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase.renderCommandLinkStart(HtmlLinkRendererBase.java:175)

    at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase.encodeBegin(HtmlLinkRendererBase.java:93)

    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)

    at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:464)

    at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:360)

    at org.apache.jsp.login_jsp._jspx_meth_h_commandLink_0(org.apache.jsp.login_jsp:864)

    at org.apache.jsp.login_jsp._jspx_meth_h_form_1(org.apache.jsp.login_jsp:589)

    at org.apache.jsp.login_jsp._jspx_meth_f_view_0(org.apache.jsp.login_jsp:292)

    at org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:223)

    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)

    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)

    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)

    at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)

    at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)

    at org.jenia.faces.template.handler.ViewHandler.renderView(ViewHandler.java:74)

    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)

    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)

    at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)

    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)

    at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:47)

    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)

    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

    at com.magnasteyr.msaaa.client.web.SecurityFilter.doFilter(SecurityFilter.java:188)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

    at org.apache.catalin

AW: Re: Datatable and Request scope

2006-04-25 Thread andreas.mitter
Hi Werner!

Thx for the link, this sounds quite easy... Is this everything I have to 
implement?
No changes in the jsf pages?

Regards,
Andy

-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
Gesendet: Dienstag, 25. April 2006 15:07
An: users@myfaces.apache.org
Betreff: Re: Datatable and Request scope


Werner Punz schrieb:
> [EMAIL PROTECTED] schrieb:
>> I have a Datatable which has thousands of items in it. I get this items
>> via a database. I don't want to store them in the session, because this
>> will kill the session...
>>
>> So I put it into request scope.. The problem now is the the datascroller
>> doesn't work anymore, because I loose the list, because it's only in
>> request scope...
>>
>> What would be the best way to overcome this problem?
>>
> 
> Using a datamodel overcomes this problem.
> There is a wiki entry in the myfaces wiki which describes exactly
> on how to write your own custom data models.
> 
> 
sorry for the missing link, it took me a while to dig it out:

http://wiki.apache.org/myfaces/WorkingWithLargeTables

or at least it should be I cannot reach the wiki currently :-(


++

This message is not legally binding upon our company!
This communication is confidential and is intended solely for the addressee(s). 
If you are not the intended recipient(s), his/her assistant, or authorized 
recipient, any form of disclosure, reproduction, distribution or any use of 
this communication or the information in it, is strictly prohibited and may be 
unlawful. In this case, please notify the sender immediately and destroy the 
e-mail. Electronic communication via the Internet by e-mail may be manipulated 
and/or read by third parties, thus we exclude any liability whatsoever for this 
e-mail.

++


Datatable and Request scope

2006-04-25 Thread andreas.mitter
Title: Datatable and Request scope






I have a Datatable which has thousands of items in it. I get this items via a database. I don't want to store them in the session, because this will kill the session...

So I put it into request scope.. The problem now is the the datascroller doesn't work anymore, because I loose the list, because it's only in request scope...

What would be the best way to overcome this problem?


Regards,

Andy



++

This message is not legally binding upon our company!
This communication is confidential and is intended solely for the addressee(s). If you are not the intended recipient(s), his/her assistant, or authorized recipient, any form of disclosure, reproduction, distribution or any use of this communication or the information in it, is strictly prohibited and may be unlawful. In this case, please notify the sender immediately and destroy the e-mail. Electronic communication via the Internet by e-mail may be manipulated and/or read by third parties, thus we exclude any liability whatsoever for this e-mail.

++



AW: Myfaces, Spring and Hibernate

2006-04-12 Thread andreas.mitter
Title: Myfaces, Spring and Hibernate



Hi, 
perhaps this helps you:
http://www.javaworld.com/javaworld/jw-07-2004/jw-0719-jsf.html
 
At the 
bottom of the page you can download a sample application. 
 
It's 
not with Myfaces but with Suns JSF, but this shouldn't be a problem i 
think
 
Regards,
Andy

  -Ursprüngliche Nachricht-Von: Kranthi Parasu 
  [mailto:[EMAIL PROTECTED]Gesendet: Mittwoch, 12. April 2006 
  19:17An: 'MyFaces Discussion'Betreff: Myfaces, Spring 
  and Hibernate
  Hello All, 
  Iam currently in the process of evaluating Myfaces for my new 
  project, all of our previous projects are Struts based. I have liked Myfaces 
  so far but I am interested in an sample application involving Myfaces, spring 
  and hibernate, I have searched in the wiki and google but found none, if 
  anyone has an application to share, please let me know.
  Thanks in advance, 
  Kranthi 
__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co KG!

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 swept
for the presence of computer viruses.
__



AW: Re: AW: Re: AW: Re: AW: InputSuggestAjax not working together with Oracle ADF

2006-03-29 Thread andreas.mitter
If I have time I will try it again and switch back to Dojo and will look more 
deeper to see if something doesn't work with CLient Side...
Meantime project deadline and my diploma thesis is calling :(

Regards,
Andy

-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
Gesendet: Mittwoch, 29. März 2006 12:25
An: users@myfaces.apache.org
Betreff: Re: AW: Re: AW: Re: AW: InputSuggestAjax not working together
with Oracle ADF


[EMAIL PROTECTED] schrieb:
> I'm just a bit confused about the Client Side Saving...
> For me the dojo InputSuggestAjax worked with Client Side saving too
> 
> but you just said: "client side state saving does not work for now" ->>Have 
> you tested this?
> 
> Regards,
> Andy
> 
Actually it was one of the few issues I had with it a while ago trying
it out.
Switching to server side state saving solved it for me, after getting
Geralds advice.


__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co 
KG!

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 swept
for the presence of computer viruses.
__


AW: Re: AW: Re: AW: InputSuggestAjax not working together with Oracle ADF

2006-03-29 Thread andreas.mitter
I'm just a bit confused about the Client Side Saving...
For me the dojo InputSuggestAjax worked with Client Side saving too

but you just said: "client side state saving does not work for now" ->>Have you 
tested this?

Regards,
Andy

-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
Gesendet: Mittwoch, 29. März 2006 11:58
An: users@myfaces.apache.org
Betreff: Re: AW: Re: AW: InputSuggestAjax not working together with
Oracle ADF


[EMAIL PROTECTED] schrieb:
> No I'm using the old one...
> But I tried the dojo one too  (with client side state-saving)...(but I didn't 
> recognize any changes...) so I switched back to the old one.
> 
> by the way: are there big differences between the old one and dojo one?
> 
> Regards,
> Andy
Yes... somwhat different layout, way less code for us to maintain based
upon a proven javascript codebase, basically the dojo ajax component
is just a few lines of code from our side javascript side, and it in the
core can do much more out of the box (most of it not being exposed
currently probably)

- client side state saving does not work for now (which probably is more
a bug from our side).

+ sides for the user, way less problems in the long run with the
underlying javascript code, additional table suggest component done by
Gerald.


Down sides for now client side statesaving does not work yet on the
suggest, and
the dojo loading times have to be improved (which will happen in April,
if time permits)

Basically all new sandbox components which went in in the last weeks use
dojo extensively.
Here is one which uses dojo which soon will go into the sandbox
(currently ie only and therefore not sandbox ready)

http://wuerg.kicks-ass.net:8080/spellchecker

It would have been impossible to pull that of in a few weeks timeframe
without dojo.


__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co 
KG!

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 swept
for the presence of computer viruses.
__


AW: Re: AW: InputSuggestAjax not working together with Oracle ADF

2006-03-29 Thread andreas.mitter
No I'm using the old one...
But I tried the dojo one too  (with client side state-saving)...(but I didn't 
recognize any changes...) so I switched back to the old one.

by the way: are there big differences between the old one and dojo one?

Regards,
Andy

-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
Gesendet: Mittwoch, 29. März 2006 11:39
An: users@myfaces.apache.org
Betreff: Re: AW: InputSuggestAjax not working together with Oracle ADF


Weird to my knowledge it does not (the old one might be)
which version do you use, the old one, or the new one which is based on
dojo, which currently can be found in the current nightly builds.


[EMAIL PROTECTED] schrieb:
> Ahm, I'm using Client side State-Saving at the moment with the 
> InputSuggestAjax and it works fine
> 
> So this can't be the problem...
> 
> Regards,
> Andy
> 
> -Ursprüngliche Nachricht-
> Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 29. März 2006 11:25
> An: MyFaces Discussion
> Cc: [EMAIL PROTECTED]
> Betreff: Re: InputSuggestAjax not working together with Oracle ADF
> 
> 
> ADF enforces client-side state-saving? I can't believe that!
> 
> regards,
> 
> Martin
> 
> On 3/29/06, Gerald Müllan <[EMAIL PROTECTED]> wrote:
>>> Looks like ADF enforces client side state saving.
>> Yes, seems to be.
>>
>> Sorry, but the component doesn`t work with client side state saving at
>> the moment.
>>
>> It`s on my "opened-issues" list, but I had less time to fix it.
>>
>> If you switch to server side it should work fine.
>>
>> cheers,
>>
>> Gerald
>>
>> On 3/29/06, Werner Punz <[EMAIL PROTECTED]> wrote:
>>> [EMAIL PROTECTED] schrieb:
 I just released, that the InputSuggestAjax of the Sandbox doesn't work
 together with Oracle ADF...

 When I'm typing something into the SuggestBox, i just get the following
 message on my console (but I don't get any suggestitems nor any
 errorstack...)

 2006-03-29 10:49:19,315 ERROR [http-8080-Processor25]
 org.apache.myfaces.renderkit.html.HtmlResponseStateManager: No component
 states to be saved in client response!

 When I'm removing the ADF libraries and everything, that has to do with
 ADF from web.xml, then everything works fine and I get the list of
 suggested Items.

 It must have to do something with ADF. Anyone had the same expericences?

 Regards,
 Andy


>>> Looks like ADF enforces client side state saving.
>>>
>>>
>>
>> --
>> Gerald Müllan
>> Schelleingasse 2/11
>> 1040 Vienna, Austria
>> 0043 699 11772506
>> [EMAIL PROTECTED]
>>
> 
> 
> --
> 
> http://www.irian.at
> 
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
> 
> Professional Support for Apache MyFaces
> 
> 
> __
> 
> Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
> rechtsunverbindlich! 
> - This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & 
> Co KG! 
> 
> 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 swept
> for the presence of computer viruses. 
> __
> 


__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co 
KG!

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 swept
for the presence of computer viruses.
__


AW: InputSuggestAjax not working together with Oracle ADF

2006-03-29 Thread andreas.mitter
Ahm, I'm using Client side State-Saving at the moment with the InputSuggestAjax 
and it works fine

So this can't be the problem...

Regards,
Andy

-Ursprüngliche Nachricht-
Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 29. März 2006 11:25
An: MyFaces Discussion
Cc: [EMAIL PROTECTED]
Betreff: Re: InputSuggestAjax not working together with Oracle ADF


ADF enforces client-side state-saving? I can't believe that!

regards,

Martin

On 3/29/06, Gerald Müllan <[EMAIL PROTECTED]> wrote:
> > Looks like ADF enforces client side state saving.
>
> Yes, seems to be.
>
> Sorry, but the component doesn`t work with client side state saving at
> the moment.
>
> It`s on my "opened-issues" list, but I had less time to fix it.
>
> If you switch to server side it should work fine.
>
> cheers,
>
> Gerald
>
> On 3/29/06, Werner Punz <[EMAIL PROTECTED]> wrote:
> > [EMAIL PROTECTED] schrieb:
> > > I just released, that the InputSuggestAjax of the Sandbox doesn't work
> > > together with Oracle ADF...
> > >
> > > When I'm typing something into the SuggestBox, i just get the following
> > > message on my console (but I don't get any suggestitems nor any
> > > errorstack...)
> > >
> > > 2006-03-29 10:49:19,315 ERROR [http-8080-Processor25]
> > > org.apache.myfaces.renderkit.html.HtmlResponseStateManager: No component
> > > states to be saved in client response!
> > >
> > > When I'm removing the ADF libraries and everything, that has to do with
> > > ADF from web.xml, then everything works fine and I get the list of
> > > suggested Items.
> > >
> > > It must have to do something with ADF. Anyone had the same expericences?
> > >
> > > Regards,
> > > Andy
> > >
> > >
> > Looks like ADF enforces client side state saving.
> >
> >
>
>
> --
> Gerald Müllan
> Schelleingasse 2/11
> 1040 Vienna, Austria
> 0043 699 11772506
> [EMAIL PROTECTED]
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces


__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co 
KG!

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 swept
for the presence of computer viruses.
__


InputSuggestAjax not working together with Oracle ADF

2006-03-29 Thread andreas.mitter
Title: InputSuggestAjax not working together with Oracle ADF






I just released, that the InputSuggestAjax of the Sandbox doesn't work together with Oracle ADF...


When I'm typing something into the SuggestBox, i just get the following message on my console (but I don't get any suggestitems nor any errorstack...)

2006-03-29 10:49:19,315 ERROR [http-8080-Processor25] org.apache.myfaces.renderkit.html.HtmlResponseStateManager: No component states to be saved in client response!

When I'm removing the ADF libraries and everything, that has to do with ADF from web.xml, then everything works fine and I get the list of suggested Items.

It must have to do something with ADF. Anyone had the same expericences?


Regards,

Andy



__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co KG!

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 swept
for the presence of computer viruses.
__



AW: jenia and myfaces 1.1.1

2006-03-21 Thread andreas.mitter
Hi,

I'm using Jenia Popups with MyFaces and it works...
What problems do you have?
Any error stack?

Regards,
Andy

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Samstag, 18. März 2006 12:00
An: MyFaces Discussion
Betreff: jenia and myfaces 1.1.1


Hi,
Is any one using jenia for popup windows with my faces 1.1.1. we tries
using it but got some error during parameter passing.

Any confirmation for same will be appreciated.

Thanks

Manish


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information. If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited. If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments. Thank you


__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co 
KG!

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 swept
for the presence of computer viruses.
__


Mime Type Outlook

2006-03-10 Thread andreas.mitter
Title: Mime Type Outlook






Hi!


Does anybody know, what Mime-Type to use in my web.xml for Outlook's *.msg files?
Users can upload files in my application and can also download them, but I don't know which Mime Type i should use for msg File and Google also doesn't give me an answer, that works.

Thx for help!

Regards

Andy



__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co KG!

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 swept
for the presence of computer viruses.
__



AW: New InputSuggestAjax not working with my use case

2006-03-08 Thread andreas.mitter



Is 
there already an Example of the new TableSuggest? I just want to check, what 
this component is all about, because it's sounds 
interesting.
I have 
just looked into the examples(sandbox.war), but there isn't.
 
Second 
question: Is the InputSuggestAjax already implemented with 
Dojo?
 
Regards,
Andy

  -Ursprüngliche Nachricht-Von: Michel Goldstein 
  [mailto:[EMAIL PROTECTED]Gesendet: Mittwoch, 8. März 2006 
  23:23An: MyFaces DiscussionBetreff: Re: New 
  InputSuggestAjax not working with my use caseHi 
  Gerald,Thanks for the update on it. Do you need any help on it? I can 
  certainly find some time to give you a hand on it. It's not that I depend on 
  the nighly build at all, but who knows what I'll find in the future. Just 
  thought I could offer some help. Thanks,Michel 
  On 3/8/06, Gerald 
  Müllan < [EMAIL PROTECTED]> 
  wrote:
  Hi 
Michel,first, it should not be a need to create your own component 
for thiskind of usecase.Changing to have this feature sounds more 
like adding a new attributeto the component.Since tying 
inputSuggestAjax to dojo, the component is still under construction; i 
have invested my time to get the new tableSuggest towork, so sorry but 
not so much time to spend on it.I know there are still some open 
issues for it (like styling and ofcourse your suggested feature; i have 
recognized the same problem a few days ago) and hopefully i get them to 
work the next two weeks.Till the new inputSuggestAjax will work as 
it is also satisfying forme, i would suggest relying on the old 
component (if you are notdepending on the nightly builds) or the new 
tableSuggest which should also work 
fine.regards,GeraldOn 3/7/06, Michel Goldstein 
<[EMAIL PROTECTED] > wrote:> 
Hi,>> I was using the "old" InputSuggestAjax for 
autocompletion that accepted > receiving the beginning of the middle 
word of a phrase. For example:>> Entering "m" would give 
me:>> "know my 
components">  "MyFaces"> "oh my!" >> 
However, in the new version of the component, it automatically picks up 
the> first word and assumes that you typed the first letter of this 
word. For my> example above it would add to the text box "k|now my 
components" (the "|" > symbol is where cursor would be) and then 
suddenly it would think that I> actually entered "k" instead of "m" 
and recalculate all my suggestions for> "k".>> Is this 
a valid use case for the new component and it doesn't work right now 
> because it's still in development phase? Or should I plan to stick 
to the> old component or create one of my own to deal with this use 
case?>> Thank you,> Michel>-- 
Gerald MuellanSchelleingasse 2/111040 Vienna, Austria0043 
699 11772506[EMAIL PROTECTED]
__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co KG!

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 swept
for the presence of computer viruses.
__



Problems with Duplicate IDs

2006-03-07 Thread andreas.mitter
Title: Problems with Duplicate IDs







I get the following error stack when my page is reloaded after a ValueChangeListener:


cannot add component with id 'edisys to its parent component with id : 'content' and path '{Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /newpartner.jsp][Class: javax.faces.component.html.HtmlForm,Id: content]}'at position :24 in list of children. This might be a problem due to a duplicate id in a previously added component,if this is the case, the problematic id might be one of : popupEdisector,_idJsp41,_idJsp34,_idJsp45,_idJsp30,imageweiter,_idJsp29,newpartnerMandanten,_idJsp31,edibereich,_idJsp42,popupFnames,_idJsp39,sector,_idJsp32,_idJsp28,errormessage,_idJsp36,_idJsp43,standorte,newPartnerstatus,ort,companyname,_idJsp38

The problem is, that there is no other component with the same id, so I don't really know, why I get this stack.


I think the problem is, that when the page is reloaded, the Id is still there and that's why there comes this error stack.

I reload the page with the following way:


                String viewId = "/newpartner.jsp";

                FacesContext context = FacesContext.getCurrentInstance();

                UIViewRoot view = context.getApplication().getViewHandler()

                        .createView(context, viewId);

                view.setViewId(viewId);

                context.setViewRoot(view);

                context.renderResponse();



Does anyone one, what I can do?


Regards and thx for help,

Andy



__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co KG!

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 swept
for the presence of computer viruses.
__



Update Content of t:popup dynamically -->Howto?

2006-03-05 Thread andreas.mitter
Title: Update Content of t:popup dynamically -->Howto?






Hi Guys!


Is it possible to dynamically update the content of  a t:popup COmponent.

I want to do the following:

I want to include the popup in a datatable and if the user moves over one column the popup should be opened and some data from this column should be shown.

If the user moves to the next column, the content of the popup should be now updated with the data of this column.


Is this possible? If yes, how?


Regards,

Andy



__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co KG!

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 swept
for the presence of computer viruses.
__



Warning: Stale component found

2006-03-02 Thread andreas.mitter
Title: Warning: Stale component found






Hi all!


I'm getting serveral log warning like the following:


2006-03-02 13:58:56,365 WARN  [http-8180-Processor21] org.apache.myfaces.application.ApplicationImpl: Stale component found while creating component of type

[javax.faces.HtmlSelectOneMenu] for binding [#{searchDto.SM_iptyp}]


SM_iptyp is a HtmlSelectOneMenu object and is used for the binding attribute in a 



Can somebody tell me, what this warning has to do with?


Regards,

Andy



__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co KG!

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 swept
for the presence of computer viruses.
__



AW: String concatenation in EL

2006-02-28 Thread andreas.mitter



Oh 
sorry, I thought prefix and key are just two entries in your 
bundle...
I just 
should have read the mail more exactly ;)
 
Regards,
Andy

  -Ursprüngliche Nachricht-Von: Frank Felix Debatin 
  [mailto:[EMAIL PROTECTED]Gesendet: Dienstag, 28. Februar 2006 
  14:24An: 'MyFaces Discussion'Betreff: RE: String 
  concatenation in EL
  This would have a different effect. I organized the 
  ressources with keys such as "myPage.title".  So I would like to 
  have
   
  #{bundle[ page.name + '.title' ] } 
   
  to be resolved to 
   
  
  #{bundle[ 'myPage.title' ] }
   
  Thanks
  Frank 
Felix
   
   
  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 
  2006 2:17 PMTo: users@myfaces.apache.orgSubject: AW: 
  String concatenation in EL
  
  I'm 
  sure it would work like this:
   
   
  But I don't know, if 
  you would like to do it like that (because it's not a really nice 
  solution)
   
  Regards,
  Andy
  
-Ursprüngliche Nachricht-Von: Frank Felix Debatin 
[mailto:[EMAIL PROTECTED]Gesendet: Dienstag, 28. Februar 2006 
14:15An: 'MyFaces Discussion'Betreff: String 
concatenation in EL
Hi all, 
 
sorry if this question is slightly off-topic ... but 
maybe you have a quick answer.
 
How to concat strings in EL?
 
My goal is to write something like 

 

 
where prefix and key are string 
parameters. Neither plus sign nor spaces work.
 
TIA
Frank 
  Felix__ 
  Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
  rechtsunverbindlich! - This message is not legally binding upon MAGNA STEYR 
  Fahrzeugtechnik AG & Co KG! 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 swept for the presence of computer viruses. 
  __ 

__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co KG!

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 swept
for the presence of computer viruses.
__



AW: String concatenation in EL

2006-02-28 Thread andreas.mitter



I'm 
sure it would work like this:
 
 
But I don't know, if you would like to do it like that 
(because it's not a really nice 
solution)
 
Regards,
Andy

  -Ursprüngliche Nachricht-Von: Frank Felix Debatin 
  [mailto:[EMAIL PROTECTED]Gesendet: Dienstag, 28. Februar 2006 
  14:15An: 'MyFaces Discussion'Betreff: String 
  concatenation in EL
  Hi all, 
   
  sorry if this question is slightly off-topic ... but 
  maybe you have a quick answer.
   
  How to concat strings in EL?
   
  My goal is to write something like 
  
   
  
   
  where prefix and key are string parameters. Neither 
  plus sign nor spaces work.
   
  TIA
  Frank Felix
__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co KG!

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 swept
for the presence of computer viruses.
__



ValueBinding HtmlSelectOneMenu -->Curious problem

2006-02-23 Thread andreas.mitter
Title: ValueBinding HtmlSelectOneMenu -->Curious problem






Hi!


I have problems with ValueBindings (the binding attribute) with HtmlSelectOneMenu components.

When I add such a binding to a component and load my page, the value in the HtmlSelectOneMenu is wrong (it's not the value, that was set)...

Can somebody tell me, who I can bind a value to a HtmlSelectOneMenu.


I have done the following:

editDto.getSMsector().setSubmittedValue(test);

editDto.setEdiId(test);


getSMsector is the getter Method of my HtmlSelectOneMenu component.

test is a Long Value.


Do I have to set the value in another way?


My JSP looks like this:



 

h:selectOneMenu>



I hope it's clear what I mean, and I hope somebody can help me...



THX very much!


Regards

Andy



__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co KG!

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 swept
for the presence of computer viruses.
__



Mime Type Problems with Upload/Download Function

2006-02-22 Thread andreas.mitter
Title: Mime Type Problems with Upload/Download Function






Hi!

I have implemented an upload Component into my application.
The user can also upload msg (MS Outlook) Files from there.

Do be able to download the file again, I have added the following line to my web.xml



  
     msg
     application/msoutlook
  



Now in Firefox everything works normal and the file is opened in MSOutlook, when I download it.
But in IE the file isn't opened and i get a message, that its and unknown file type and I can't open the file

Any ideas, what I can do? Is it the false mime-type?



__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co KG!

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 swept
for the presence of computer viruses.
__



AW: HttpSessionListener -->How to react, when Session is not valid anymore

2006-02-14 Thread andreas.mitter
So what can I do in my case?
Is there another possibility to react on a session Timeput and redirection of 
the user?

Regards,
Andy

-Ursprüngliche Nachricht-
Von: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 14. Februar 2006 14:41
An: MyFaces Discussion
Betreff: Re: HttpSessionListener -->How to react, when Session is not
valid anymore


Hi Andreas,

for each request there is one FacesContext obj, so it is not
associated to the user's (http) session.

-Matthias

On 2/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi!
>
> I have just implemented a HttpSessionListener to react on the event, when
> the session is not valid anymore.
>
> Now I want to redirect the user to my login page again, when the session is
> timed out...
>
> The Problem is, that the FacesContext is also null, when the session is
> timed out...
> So how can I do a redirect, if I don't have a FacesContext?
>
>
> So my listener looks like this:
> public final class MyContextListener implements HttpSessionListener {
>
> public void sessionCreated(HttpSessionEvent arg0) {
> // TODO Auto-generated method stub
>
> }
>
> public void sessionDestroyed(HttpSessionEvent arg0) {
> System.out.println("SESSION ABGELAUFEN");
>
> HttpServletRequest req = (HttpServletRequest)
> FacesContext.getCurrentInstance().getExternalContext().getRequest();
>
> HttpServletResponse res
> =(HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse();
>
>
> try {
> req.getRequestDispatcher("/logout.jsp").forward(req,
> res);
> }
>  catch (ServletException e2) {
>   e2.printStackTrace();
> } catch (IOException e2) {
>   e2.printStackTrace();
>  }
> }
> }
> __
> Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG
> rechtsunverbindlich! - This message is not legally binding upon MAGNA STEYR
> Fahrzeugtechnik AG & Co KG! 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 swept for the presence of computer viruses.
> __
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co 
KG!

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 swept
for the presence of computer viruses.
__


HttpSessionListener -->How to react, when Session is not valid anymore

2006-02-14 Thread andreas.mitter
Title: HttpSessionListener -->How to react, when Session is not valid anymore






Hi!


I have just implemented a HttpSessionListener to react on the event, when the session is not valid anymore.


Now I want to redirect the user to my login page again, when the session is timed out...


The Problem is, that the FacesContext is also null, when the session is timed out... 

So how can I do a redirect, if I don't have a FacesContext?



So my listener looks like this:

public final class MyContextListener implements HttpSessionListener {


public void sessionCreated(HttpSessionEvent arg0) {

        // TODO Auto-generated method stub

        

    }


public void sessionDestroyed(HttpSessionEvent arg0) {

        System.out.println("SESSION ABGELAUFEN");

                

        HttpServletRequest req = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest(); 

        HttpServletResponse res =(HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse();

    

        try { 

            req.getRequestDispatcher("/logout.jsp").forward(req, res); 

        }

     catch (ServletException e2) {

          e2.printStackTrace(); 

        } catch (IOException e2) {

          e2.printStackTrace();

     }      

    }

}



__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co KG!

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 swept
for the presence of computer viruses.
__



Problems with integration of ADF Faces

2006-02-14 Thread andreas.mitter
Title: Problems with integration of ADF Faces






Hi all!



I just tried to implement the oracle ADF Faces COmponents in my MyFaces Application.

I have added all jars and did the installation like it's described here: http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/installation.html

 

What can be the problem?? (I'm using JVM 1.5)


Now I get the following error stack:

2006-02-14 12:54:09,805 ERROR [main] org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/editool]: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener

java.lang.IllegalAccessError: tried to access class oracle.adfinternal.view.faces.renderkit.core.xhtml.ResourceKeyUtils from class oracle.adfinternal.view.faces.renderkit.core.desktop.TreeTableRenderer

    at oracle.adfinternal.view.faces.renderkit.core.desktop.TreeTableRenderer.createResourceKeyMap(TreeTableRenderer.java:574)

    at oracle.adfinternal.view.faces.renderkit.core.xhtml.TableRenderer.(TableRenderer.java:56)

    at oracle.adfinternal.view.faces.renderkit.core.desktop.DesktopTableRenderer.(DesktopTableRenderer.java:56)

    at oracle.adfinternal.view.faces.renderkit.core.desktop.TreeTableRenderer.(TreeTableRenderer.java:59)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

    at java.lang.reflect.Constructor.newInstance(Unknown Source)

    at java.lang.Class.newInstance0(Unknown Source)

    at java.lang.Class.newInstance(Unknown Source)

    at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:274)

    at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:265)

    at org.apache.myfaces.config.FacesConfigurator.configureRenderKits(FacesConfigurator.java:595)

    at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:131)

    at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:63)

    at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:46)

    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)

    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)

    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)

    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)

    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)

    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)

    at org.apache.catalina.core.StandardService.start(StandardService.java:450)

    at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)

    at org.apache.catalina.startup.Catalina.start(Catalina.java:537)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)

    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)


Thx for help,

Regards,

Andy



__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co KG!

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 swept
for the presence of computer viruses.
__



AW: Problems with ValueChangeEvent and ValueBinding

2006-02-10 Thread andreas.mitter
I meant the Binding attribute, but I have already achieved it with 
setSubmittedValue().

Regards,
Andy

-Ursprüngliche Nachricht-
Von: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 9. Februar 2006 21:45
An: MyFaces Discussion
Betreff: Re: Problems with ValueChangeEvent and ValueBinding


Andy, when you say "ValueBinding" and "Binding" do you mean the
binding attribute or the value attribute?


On 1/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Perhaps I haven't described my problem exactly so that it's
> unterstandable...
>
> My problem is the following:
> If I add a Binding attribute to a inputText component, I can't update the
> value of this Textfield by an ValueChangeEvent of another InputText
> Component.(if the Page is new loaded, the inputTextfield is still empty=
>
> If I try to set the value with the appropriate setter method, just nothing
> happens. The inputtext field stays empty and the value isn't updated.
>
> When I remove the Binding attribute then everything works... (But I need the
> binding)
>
> Do I have to set the value in another way?
>
> Regards,
> Andy
>
>
>  -Ursprüngliche Nachricht-
> Von:Mitter Andreas, ISX
> Gesendet:   Donnerstag, 26. Januar 2006 14:10
> An: MyFaces (E-Mail)
> Betreff:Problems with ValueChangeEvent and ValueBinding
>
>
> Hi all!
>
> In my application I have a inputText Component with a ValueChangeEvent.
> The ValueChangeMethod starts a Database query and if some data is found,
> then the founded records are written into other inputText Components on the
> mask.
>
> The problem now is, that if I add a ValueBinding attribute to this other
> inputText fields, the new data from the query isn't written into the fields.
> If I remove the Valuebinding everything works...
>
> How can I overcome this problem?
>
> Here my jsp with two InputText Fields
> 
>  value="#{beziehungsDto.lfnr}" styleClass="mustfield"
> required="true"
> size="35" rendered="#{showTags.showLfnr}" immediate="true"
> valueChangeListener="#{querySelectHelper.selectSamData}"
> onchange="submit()">
> 
> 
> 
>
> In this second field some data should be written. If I remove the binding
> attribute, it works, if I leave it, the field isn't updated...
>
> 
>  id="partnernameneu" value="#{beziehungsDto.namepartner}"
> styleClass="mustfield" required="true" size="35">
> 
> 
> 
>
>
> Here is the ValueChangeMethod:
>
> public void selectSamData(ValueChangeEvent event)
> {
> beziehungsDto =
> (BeziehungDto)FacesUtil.getManagedBean("beziehungsDto");
> qh =
> (QueryHelper)FacesUtil.getManagedBean("queryHelper");
> Session session = HibernateSAMUtil.currentSession();
> Transaction tx = null;
> try {
> tx = session.beginTransaction();
> String sqlstring = "Select a.firmNr, a.firmNamKurz,
> a.bdtKndNr," +
> " a.lfvUebArt, a.sfDunsNr from
> Eklist a  where a.firmNr=:liefnr";
>
> Query q =session.createQuery(sqlstring);
>
> q.setString("liefnr", (String)event.getNewValue());
>
> Iterator it = q.list().iterator();
> while(it.hasNext())
> {
> Object[] row = (Object[])it.next();
>
>
> //beziehungsDto.setNamepartner((String)row[1]);
>
> beziehungsDto.getITpartnername().setValue((String)row[1]);
>
> beziehungsDto.setNamepartner((String)row[1]);
> ...
>
> }
>
> }
>
> String viewId = "/popupAddBeziehung.jsp";
> FacesContext context =
> FacesContext.getCurrentInstance();
> UIViewRoot view =
> context.getApplication().getViewHandler()
> .createView(context, viewId);
> view.setViewId(viewId);
> context.setViewRoot(view);
> context.renderResponse();
>
> tx.commit();
> }
> catch (Exception ex) {
> if (tx != null)
> tx.rollback();
>
> MessageUtils.addMessage(FacesMessage.SEVERITY_WARN,
> "errorListDataForAdminDB", null,
> context);// TODO
> ex.printStackTrace();
> }
> finally {
> HibernateSAMUtil.closeSession();
> }
>
>
> }
>
> __
> This email and any files transmitted with it are confidential and intended
> solely for the use of th

How to unexpand Tree2

2006-02-08 Thread andreas.mitter
Title: How to unexpand Tree2






I'm using a tree2 in my application.


When I open the jsf page with the tree the tree is not expanded. If I expand the tree, then go to another page and then go back to the first page with the tree, the tree is still expanded...

Is there a way to unexpand the tree, everytime the page is new loaded?


Regards,

Andy



__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co KG!

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 swept
for the presence of computer viruses.
__



AW: Re: AW: Re: AW: Re: AW: Re: AW: Re: AW: AW: inputHtml broken in IE?

2006-02-06 Thread andreas.mitter
Hi all!

I have added the wiki: http://wiki.apache.org/myfaces/WYSIWYG_Editor
Hope it's ok for you!

Regards,
Andy

-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
Gesendet: Montag, 6. Februar 2006 20:13
An: users@myfaces.apache.org
Betreff: Re: AW: Re: AW: Re: AW: Re: AW: Re: AW: AW: inputHtml broken in
IE?


Go ahead... the wiki is for everyone to use ;-)

and thanks for everything...

Werner



[EMAIL PROTECTED] schrieb:
> I don't know if I should add it to sourceforge, because you only have to 
> download the zip File from http://tinymce.moxiecode.com/, extract the 
> tiny_mce directory from within tinymce/jscripts/tiny_mce and put it in the 
> root of your web directory
> 
> and but the following code into the JSF Page:
>  
>  type="text/javascript">
> 
> tinyMCE.init({
> mode : "textareas",
> theme : "simple",
> width : "640",
> height : "480"
> });
> 
> 
> Then every h:inputTextarea will be a TinyMCE editor itself.
> Of course, more configuration can be done, but basically this would work.
> 
> But I can do a wiki on the Myfaces Homepage, but I don't now if it's is 
> allowed, because of the Apache license problems...
> 
> Regards,
> Andy
> 
> 
> 
> -Ursprüngliche Nachricht-
> Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
> Gesendet: Montag, 6. Februar 2006 17:06
> An: users@myfaces.apache.org
> Betreff: Re: AW: Re: AW: Re: AW: Re: AW: AW: inputHtml broken in IE?
> 
> 
> Superb, we cannot put it into myfaces, but you it would be great
> if you could donate the component (for jsf-comp on sourceforge, which is
> our non apache side codebase for stuff which is not apache compliant or
> extremely experimental)
> 
> Werner
> 
> 
> [EMAIL PROTECTED] schrieb:
>> Hi Werner!
>>
>> With the help of Mike Litherland I implemented the TinyMCE EDitor. This 
>> works fine with JSF and so I'm satisfied with it.
>>
>> Regards,
>> Andy
>>
>> -Ursprüngliche Nachricht-
>> Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
>> Gesendet: Montag, 6. Februar 2006 15:16
>> An: users@myfaces.apache.org
>> Betreff: Re: AW: Re: AW: Re: AW: AW: inputHtml broken in IE?
>>
>>
>> [EMAIL PROTECTED] schrieb:
>>> I have now tried to implement the Xinha Editor, but it doesn't work.
>>> The problem seems to be the f:view Tag.
>>> If I remove it, the editor works (but no buttons work anymore of course), 
>>> if I add it, the editor doesn't work.
>>> As anybody already achieved to solve this problem?
>>>
>> You cannot remove the f:view tag because it is the root element of a jsf
>> page, the problem is very likely a conflict between the jsf form submit
>> and the xhinha form submit (I ran into the same problem with the dojo
>> html editor which I testwise pushed into a jsf form via the dojo
>> htmledit style)
>>
>>
>> __
>>
>> Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
>> rechtsunverbindlich! 
>> - This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & 
>> Co KG! 
>>
>> 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 swept
>> for the presence of computer viruses. 
>> __
>>
> 
> 
> __
> 
> Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
> rechtsunverbindlich! 
> - This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & 
> Co KG! 
> 
> 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 swept
> for the presence of computer viruses. 
> __
> 


__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co 
KG!

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 swept
for the presence of computer viruses.
__


AW: Re: AW: Re: AW: Re: AW: Re: AW: AW: inputHtml broken in IE?

2006-02-06 Thread andreas.mitter
I don't know if I should add it to sourceforge, because you only have to 
download the zip File from http://tinymce.moxiecode.com/, extract the tiny_mce 
directory from within tinymce/jscripts/tiny_mce and put it in the root of your 
web directory

and but the following code into the JSF Page:
 


tinyMCE.init({
mode : "textareas",
theme : "simple",
width : "640",
height : "480"
});


Then every h:inputTextarea will be a TinyMCE editor itself.
Of course, more configuration can be done, but basically this would work.

But I can do a wiki on the Myfaces Homepage, but I don't now if it's is 
allowed, because of the Apache license problems...

Regards,
Andy



-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
Gesendet: Montag, 6. Februar 2006 17:06
An: users@myfaces.apache.org
Betreff: Re: AW: Re: AW: Re: AW: Re: AW: AW: inputHtml broken in IE?


Superb, we cannot put it into myfaces, but you it would be great
if you could donate the component (for jsf-comp on sourceforge, which is
our non apache side codebase for stuff which is not apache compliant or
extremely experimental)

Werner


[EMAIL PROTECTED] schrieb:
> Hi Werner!
> 
> With the help of Mike Litherland I implemented the TinyMCE EDitor. This works 
> fine with JSF and so I'm satisfied with it.
> 
> Regards,
> Andy
> 
> -Ursprüngliche Nachricht-
> Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
> Gesendet: Montag, 6. Februar 2006 15:16
> An: users@myfaces.apache.org
> Betreff: Re: AW: Re: AW: Re: AW: AW: inputHtml broken in IE?
> 
> 
> [EMAIL PROTECTED] schrieb:
>> I have now tried to implement the Xinha Editor, but it doesn't work.
>> The problem seems to be the f:view Tag.
>> If I remove it, the editor works (but no buttons work anymore of course), if 
>> I add it, the editor doesn't work.
>> As anybody already achieved to solve this problem?
>>
> You cannot remove the f:view tag because it is the root element of a jsf
> page, the problem is very likely a conflict between the jsf form submit
> and the xhinha form submit (I ran into the same problem with the dojo
> html editor which I testwise pushed into a jsf form via the dojo
> htmledit style)
> 
> 
> __
> 
> Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
> rechtsunverbindlich! 
> - This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & 
> Co KG! 
> 
> 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 swept
> for the presence of computer viruses. 
> __
> 


__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co 
KG!

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 swept
for the presence of computer viruses.
__


AW: Re: AW: Re: AW: Re: AW: AW: inputHtml broken in IE?

2006-02-06 Thread andreas.mitter
Hi Werner!

With the help of Mike Litherland I implemented the TinyMCE EDitor. This works 
fine with JSF and so I'm satisfied with it.

Regards,
Andy

-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
Gesendet: Montag, 6. Februar 2006 15:16
An: users@myfaces.apache.org
Betreff: Re: AW: Re: AW: Re: AW: AW: inputHtml broken in IE?


[EMAIL PROTECTED] schrieb:
> I have now tried to implement the Xinha Editor, but it doesn't work.
> The problem seems to be the f:view Tag.
> If I remove it, the editor works (but no buttons work anymore of course), if 
> I add it, the editor doesn't work.
> As anybody already achieved to solve this problem?
> 
You cannot remove the f:view tag because it is the root element of a jsf
page, the problem is very likely a conflict between the jsf form submit
and the xhinha form submit (I ran into the same problem with the dojo
html editor which I testwise pushed into a jsf form via the dojo
htmledit style)


__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co 
KG!

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 swept
for the presence of computer viruses.
__


AW: Re: AW: Re: AW: AW: inputHtml broken in IE?

2006-02-06 Thread andreas.mitter
I have now tried to implement the Xinha Editor, but it doesn't work.
The problem seems to be the f:view Tag.
If I remove it, the editor works (but no buttons work anymore of course), if I 
add it, the editor doesn't work.
As anybody already achieved to solve this problem?

Regards,
Andy

-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
Gesendet: Freitag, 27. Januar 2006 10:42
An: users@myfaces.apache.org
Betreff: Re: AW: Re: AW: AW: inputHtml broken in IE?


Sorry this is getting long

[EMAIL PROTECTED] schrieb:
> Hi Werner and Mike!
> 
> 
> I don't understand your last posting...
> What do you have submitted now to the rep?
> 
> And wouldn't it be possible to update Kupu with a new license?
> 

Good question.. I was talking with Martin one of the core people
this problem yesterday. The Kupu license was derived from another BSDish
project which used obviously a relicensed Kupu codebase.

Maybe this project has a new version of the lib (which could be or not),
this will be investigated soon, but in the long run I do not see any
sense in going with kupu.

The main problem is, relicensing is somewhat complicated, basically if
it is under GPL or LGPL everyone who has donated code must agree to the
relicensing, being able to relicense the stuff to my knowledge.
So one day one of the kupu people might say now and then, wham ...
a forked huge codebase.

> Or which editor you mentioned (Xinha, TinyMCE usw.) would be best to 
> integrate in JSF?
>

Xinha looks very good functionalitywise, so it definitely is an option.
It also has the correct license, AFAIR.

TinyMCE to my knowledge has licensing issues regarding licensing
compatibility with the Apache2 license (we are limited in what we can
add or not, GPL and LGPL definitely are not possible BSDish stuff is,
the CDDL from Sun is an issue which seems to be discussed in the Apache
Board of directors forever, no clearance of this issue yet ;-) )

Anyway I think in the long run going with a well maintained javascript
library (which we do not have to maintain but is maintained by the
project people themselves) with lots of committers and build upon their
infrastructure is the way to go. We tried to move towards prototype, in
this area, but there are too many problems related with it so it is very
likely that it will be phased out for the non sandbox components in the
future.

The key is to try to keep the javascript related lines of code from us
or from different sources as low as possible.

As replacement for the prototype lib I added the less problematic and
more extensive dojo library to the javascript foundations we have, and
will keep it up to date in the future.
I had a look at it, although the code is rough in some edges (lots of
old code commented out), those people know how to handle all the non
documented browser issues. And they try to keep the code as less
intrusive into javascript as possible (although they do tag intrusion,
but that is way less problematic due to being an entirely different
area), unlike the also excellent prototype library which basically does
a javascript foundation rewrite (and hence causes problems sometimes)

The dojo lib has a working rich edit control infrastructure in it, so
going with that one might be the way to go, as Mike suggested (I was
planning to add dojo anyway because I am working on a dojo based
component tag and had a need for its infrastructure for another
component which soon will be committed (This component has several dojo
backports which I needed to fix things, which I need to get out to avoid
code forks, and the ajax codebase currently is non dojo but in the long
run will be replaced by dojo). Mikes decision to try Dojo as the base
for the html edit just pushed things forward earlier than I had planned.

Nobody has any problem with it if someone wants to move forward with
Kupu or tries to integrate Xinha to the mix (after all we are happy
about every donation and helping hand). Having added the dojo codebase
was more a personal issue I and Martin had with the existing javascript
codebase and having Mike wanting to build a component or a renderer on
top of it pushed things forward earlier than expected.

Anyway the dojo foundation is in there, currently a tad rough (therefore
sandboxed), but I will keep it up to date with the latest versions, in
the codebase, so that others can build upon it.


__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co 
KG!

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 swept
for the presence of computer viruses.
_

AW: How to update fields from ValueChangeEvent

2006-02-03 Thread andreas.mitter
Thx, that solved my problem!!

Regards,
Andy

-Ursprungliche Nachricht-
Von: Jana Parvanova [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 3. Februar 2006 09:54
An: MyFaces Discussion
Betreff: Re: How to update fields from ValueChangeEvent


How do you set fields values?
You should use setSubmiittedValue instead of setValue when 'immediate' is 
true... (If I understood properly your problem.)

- Original Message - 
From: <[EMAIL PROTECTED]>
To: 
Sent: Friday, February 03, 2006 10:30 AM
Subject: AW: How to update fields from ValueChangeEvent


No one an idea?
I don't unterstand, why the fields stay empty when I use value binding 
expressions. It seems to be a display problem, because in the backing bean 
the value is set correctly...

Is there any other chance to display the data for the fields?

I would be very grateful, if you could help me!!!

THX, regards
Andy

-Ursprьngliche Nachricht-
Von: Mitter Andreas, ISX
Gesendet: Donnerstag, 2. Februar 2006 12:42
An: users@myfaces.apache.org
Betreff: How to update fields from ValueChangeEvent



Hi!
This question seems to be very stupid, but I can't achieve to update 
inputText Components within a ValueChangeEvent when this inputTextComponents 
have a binding attribute.

If I remove the binding attribute, then the fields are updated...
In the ValueChangeMethod I get records from Database depending on the Input 
of the first inputtext component and write the records into the other 
inputtext COmponents with their setter Methods.

Then the page is loaded new but the inputtextfields arenot updated
What can I do to achieve this?

Here is my JSF Page:






In this second field some data should be written. If I remove the binding 
attribute, it works, if I leave it, the field isn't updated...







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 swept for the 
presence of computer viruses. 
__



__

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 swept
for the presence of computer viruses.
__


__

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 swept
for the presence of computer viruses.
__


AW: How to update fields from ValueChangeEvent

2006-02-03 Thread andreas.mitter
Title: How to update fields from ValueChangeEvent



No one 
an idea?
I 
don't unterstand, why the fields stay empty when I use value binding 
expressions. It seems to be a display problem, because in the backing bean the 
value is set correctly...
 
Is 
there any other chance to display the data for the fields?
 
I 
would be very grateful, if you could help me!!!
 
THX, 
regards
Andy

  -Ursprüngliche Nachricht-Von: Mitter Andreas, ISX 
  Gesendet: Donnerstag, 2. Februar 2006 12:42An: 
  users@myfaces.apache.orgBetreff: How to update fields from 
  ValueChangeEvent
  Hi! This 
  question seems to be very stupid, but I can't achieve to update inputText 
  Components within a ValueChangeEvent when this inputTextComponents have a 
  binding attribute.
  If I remove the binding attribute, then the fields 
  are updated... In the ValueChangeMethod I 
  get records from Database depending on the Input of the first inputtext 
  component and write the records into the other inputtext COmponents with their 
  setter Methods.
  Then the page is loaded new but the inputtextfields 
  arenot updated What can I do to achieve 
  this? 
  Here is my JSF Page: "td" 
  rendered="#{showTags.showLfnr}">    "#{beziehungsDto.ITlfnr}"  
  id="lfnr"    
      value="#{beziehungsDto.lfnr}" 
  styleClass="mustfield" 
  required="true"    
      size="35" rendered="#{showTags.showLfnr}" immediate="true"    
      valueChangeListener="#{querySelectHelper.selectSamData}"    
      >"submit()">    
      "35">    
   In 
  this second field some data 
  should be written. If I remove the binding attribute, it works, 
  if I leave it, the field isn't updated..."td">    "#{beziehungsDto.ITpartnername}" 
  id="partnernameneu" 
  value="#{beziehungsDto.namepartner}"    
  styleClass="mustfield" 
  required="true" size="35">    
      "35">    
   
  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 swept for the presence 
  of computer viruses. 
  __ 

__

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 swept
for the presence of computer viruses.
__



How to update fields from ValueChangeEvent

2006-02-02 Thread andreas.mitter
Title: How to update fields from ValueChangeEvent






Hi!

This question seems to be very stupid, but I can't achieve to update inputText Components within a ValueChangeEvent when this inputTextComponents have a binding attribute.

If I remove the binding attribute, then the fields are updated...

In the ValueChangeMethod I get records from Database depending on the Input of the first inputtext component and write the records into the other inputtext COmponents with their setter Methods.

Then the page is loaded new but the inputtextfields arenot updated

What can I do to achieve this?


Here is my JSF Page:

"td" rendered="#{showTags.showLfnr}">
    "#{beziehungsDto.ITlfnr}"  id="lfnr"
        value="#{beziehungsDto.lfnr}" styleClass="mustfield" required="true"
        size="35" rendered="#{showTags.showLfnr}" immediate="true"
        valueChangeListener="#{querySelectHelper.selectSamData}"
        >"submit()">
        "35">
    

 
In this second field some data should be written. If I remove the binding attribute, it works, if I leave it, the field isn't updated...
"td">
    "#{beziehungsDto.ITpartnername}" id="partnernameneu" value="#{beziehungsDto.namepartner}"
    styleClass="mustfield" required="true" size="35">
        "35">
    




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 swept
for the presence of computer viruses.
__



AW: Problems with ValueChangeEvent and ValueBinding

2006-01-26 Thread andreas.mitter
Title: AW: Problems with ValueChangeEvent and ValueBinding






Perhaps I haven't described my problem exactly so that it's unterstandable...


My problem is the following:

If I add a Binding attribute to a inputText component, I can't update the value of this Textfield by an ValueChangeEvent of another InputText Component.(if the Page is new loaded, the inputTextfield is still empty=

If I try to set the value with the appropriate setter method, just nothing happens. The inputtext field stays empty and the value isn't updated.

When I remove the Binding attribute then everything works... (But I need the binding)


Do I have to set the value in another way?


Regards,

Andy


 -Ursprüngliche Nachricht-

Von:    Mitter Andreas, ISX  

Gesendet:   Donnerstag, 26. Januar 2006 14:10

An: MyFaces (E-Mail)

Betreff:    Problems with ValueChangeEvent and ValueBinding


Hi all!


In my application I have a inputText Component with a ValueChangeEvent.

The ValueChangeMethod starts a Database query and if some data is found, then the founded records are written into other inputText Components on the mask.

The problem now is, that if I add a ValueBinding attribute to this other inputText fields, the new data from the query isn't written into the fields. If I remove the Valuebinding everything works...

How can I overcome this problem?


Here my jsp with two InputText Fields



    

        f:validateLength>

    h:inputText>

t:htmlTag>


In this second field some data should be written. If I remove the binding attribute, it works, if I leave it, the field isn't updated...



    

        f:validateLength>

    h:inputText>

t:htmlTag>



Here is the ValueChangeMethod:


public void selectSamData(ValueChangeEvent event)

    {

        beziehungsDto = (BeziehungDto)FacesUtil.getManagedBean("beziehungsDto");

        qh = (QueryHelper)FacesUtil.getManagedBean("queryHelper");

        Session session = HibernateSAMUtil.currentSession();

        Transaction tx = null;

        try {

            tx = session.beginTransaction();

            String sqlstring = "Select a.firmNr, a.firmNamKurz, a.bdtKndNr," +

                    " a.lfvUebArt, a.sfDunsNr from Eklist a  where a.firmNr=:liefnr";

            

            Query q =session.createQuery(sqlstring);


            q.setString("liefnr", (String)event.getNewValue());

            

            Iterator it = q.list().iterator();

            while(it.hasNext())

            {

                Object[] row = (Object[])it.next();

                

                //beziehungsDto.setNamepartner((String)row[1]);

                beziehungsDto.getITpartnername().setValue((String)row[1]);

                beziehungsDto.setNamepartner((String)row[1]);

...

                

                }

            

            }

            

            String viewId = "/popupAddBeziehung.jsp";

            FacesContext context = FacesContext.getCurrentInstance();

            UIViewRoot view = context.getApplication().getViewHandler()

                    .createView(context, viewId);

            view.setViewId(viewId);

            context.setViewRoot(view);

            context.renderResponse();

                    

            tx.commit();

        }

        catch (Exception ex) {

            if (tx != null)

                tx.rollback();


            MessageUtils.addMessage(FacesMessage.SEVERITY_WARN,

                    "errorListDataForAdminDB", null, context);// TODO

            ex.printStackTrace();

        }

        finally {

            HibernateSAMUtil.closeSession();

        }


            

    }



__

This email and any files

AW: Re: AW: AW: inputHtml broken in IE?

2006-01-26 Thread andreas.mitter
Hi Werner and Mike!


I don't understand your last posting...
What do you have submitted now to the rep?

And wouldn't it be possible to update Kupu with a new license?

Or which editor you mentioned (Xinha, TinyMCE usw.) would be best to integrate 
in JSF?

Regards,
Andy

-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
Gesendet: Freitag, 27. Januar 2006 02:39
An: users@myfaces.apache.org
Betreff: Re: AW: AW: inputHtml broken in IE?


M Litherland schrieb:

> I've joined the developers list - just in case.  I'll get the SVN 
> archive checked out.  Do me a favor, please, and let me know when (if?) 
> you've got the dojo stuff committed.
> 
Mike just in case you have overlooked the post on the devs list, I just 
pushed dojo in with an appropriate resource loader.
Happy hacking.


__

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 swept
for the presence of computer viruses.
__


AW: AW: inputHtml broken in IE?

2006-01-26 Thread andreas.mitter
I have just looked your suggestions!

FCKEditor looks really cool, but I think there is more to do to implement 
this...
TinyMCE is in my opinion not so difficult to implement in JSF
If I have time, I will give them a try...
In the meantime if you achieve something, I would be terribly grateful, if you 
could tell me, what you did!

Regards,
Andy

-Ursprüngliche Nachricht-
Von: M Litherland [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 26. Januar 2006 14:28
An: MyFaces Discussion
Betreff: Re: AW: inputHtml broken in IE?


Hi Andy,

I'll definitely vote for the issue.

If I can't get the tomahawk version of this working in my application, I 
will likely attempt to get either FCKeditor or TinyMCE working for my 
application.  If I have to go to that extreme, I'd definitely release 
any tags I create, as it would be very handy to have a working HTML 
editor for Faces apps.

Good luck!
Mike

[EMAIL PROTECTED] wrote:

>Hi Mike!
>
>I experienced the same problem with IE. In Firefox everything works..
>I have already opened a JIRA https://issues.apache.org/jira/browse/MYFACES-953 
>about this problem, but I haven't got an answer by far... Perhaps you vote for 
>the JIRA...
>
>So does anyone know, what the problem could be with IE?
>Or is there another HTMLEDITOR available somewhere in the Net?
>
>
>Regards,
>Andy
>
>-Ursprüngliche Nachricht-
>Von: M Litherland [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 25. Januar 2006 21:58
>An: MyFaces Discussion
>Betreff: inputHtml broken in IE?
>
>
>Hi,
>
>I'm building a rather complex web form in Faces (using Sun's RI out of 
>NetBeans with Tomahawk) and I'd like to use the inputHtml tag from 
>Tomahawk to replace a number of Textarea tags.  In trying to replace 
>just one I found out that setting style="height: 30ex;" (or some other 
>value) was mandatory or the editor window wouldn't show up in IE.  Once 
>I got past that hitch I found out that if I saved some information in 
>that tag, exited the application and went back into IE the information 
>would show up briefly than be erased by whitespace.  Only by exiting and 
>re-entering that 'view' would the information come back again (briefly, 
>then disappear again).
>
>Brilliant work on the tomahawk extensions, by the way.  If I can get 
>this to work you'll officially have saved me weeks or months of work 
>doing things like file uploads, tabbed views and WYSIWYG editors by hand.
>
>Thanks,
>Mike
>
>
>__
>
>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 swept
>for the presence of computer viruses. 
>__
>  
>


__

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 swept
for the presence of computer viruses.
__


Problems with ValueChangeEvent and ValueBinding

2006-01-26 Thread andreas.mitter
Title: Problems with ValueChangeEvent and ValueBinding






Hi all!


In my application I have a inputText Component with a ValueChangeEvent.

The ValueChangeMethod starts a Database query and if some data is found, then the founded records are written into other inputText Components on the mask.

The problem now is, that if I add a ValueBinding attribute to this other inputText fields, the new data from the query isn't written into the fields. If I remove the Valuebinding everything works...

How can I overcome this problem?


Here my jsp with two InputText Fields



    

        f:validateLength>

    h:inputText>

t:htmlTag>


In this second field some data should be written. If I remove the binding attribute, it works, if I leave it, the field isn't updated...



    

        f:validateLength>

    h:inputText>

t:htmlTag>



Here is the ValueChangeMethod:


public void selectSamData(ValueChangeEvent event)

    {

        beziehungsDto = (BeziehungDto)FacesUtil.getManagedBean("beziehungsDto");

        qh = (QueryHelper)FacesUtil.getManagedBean("queryHelper");

        Session session = HibernateSAMUtil.currentSession();

        Transaction tx = null;

        try {

            tx = session.beginTransaction();

            String sqlstring = "Select a.firmNr, a.firmNamKurz, a.bdtKndNr," +

                    " a.lfvUebArt, a.sfDunsNr from Eklist a  where a.firmNr=:liefnr";

            

            Query q =session.createQuery(sqlstring);


            q.setString("liefnr", (String)event.getNewValue());

            

            Iterator it = q.list().iterator();

            while(it.hasNext())

            {

                Object[] row = (Object[])it.next();

                

                //beziehungsDto.setNamepartner((String)row[1]);

                beziehungsDto.getITpartnername().setValue((String)row[1]);

                beziehungsDto.setNamepartner((String)row[1]);

...

                

                }

            

            }

            

            String viewId = "/popupAddBeziehung.jsp";

            FacesContext context = FacesContext.getCurrentInstance();

            UIViewRoot view = context.getApplication().getViewHandler()

                    .createView(context, viewId);

            view.setViewId(viewId);

            context.setViewRoot(view);

            context.renderResponse();

                    

            tx.commit();

        }

        catch (Exception ex) {

            if (tx != null)

                tx.rollback();


            MessageUtils.addMessage(FacesMessage.SEVERITY_WARN,

                    "errorListDataForAdminDB", null, context);// TODO

            ex.printStackTrace();

        }

        finally {

            HibernateSAMUtil.closeSession();

        }


            

    }



__

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 swept
for the presence of computer viruses.
__



AW: How to do Javascript Alert when pressing a button in ADF/JSF

2006-01-26 Thread andreas.mitter
Do something like that:



In a extra js.File you must have something like:

function confirmSubmit()
{
var agree=confirm("Delete?");
if (agree)
return true ;
else
return false ;
}

-Ursprüngliche Nachricht-
Von: Debatin, Frank Felix [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 26. Januar 2006 12:50
An: users@myfaces.apache.org
Betreff: How to do Javascript Alert when pressing a button in ADF/JSF


Hello, 

we're a (very happy) user of ADF faces. There is one thing that we
didn't find a solution for:

User presses a button, let's say "delete". We want a message box to
popup (Javascript alert?), that says something like "Are you sure to
delete? Y/N", and then continue standard processing if the user answers
yes (invoking the action).

Any ideas? Did we maybe overlook something simple and straightforward?
Is there the same problem in standard JSF? We are aware of the popup
dialog features in ADF, but would like to avoid them for well-known
reasons. 

Regards
Frank Felix


__

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 swept
for the presence of computer viruses.
__


AW: searching popup page

2006-01-26 Thread andreas.mitter



Look 
at www.jenia.org
They 
have a very good popup component!
 
Regards
Andy

  -Ursprüngliche Nachricht-Von: Arash Bijanzadeh 
  [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 26. Januar 2006 
  12:28An: MyFaces DiscussionBetreff: searching popup 
  pageI need a popup page to allow the user to search, and 
  after choosing the desired entity close the popup and fill a respective field 
  in the main page.Do any body know such a componenet?-- 
  from debian manifesto:Debian Linux is a brand-new kind of Linux 
  distribution.Rather than being developed by one isolated individual or 
  group, as other distributions of Linux have been developed in the past, 
  Debian is being developed openly in the spirit of Linux and GNU. 

__

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 swept
for the presence of computer viruses.
__



AW: inputHtml broken in IE?

2006-01-25 Thread andreas.mitter
Hi Mike!

I experienced the same problem with IE. In Firefox everything works..
I have already opened a JIRA https://issues.apache.org/jira/browse/MYFACES-953 
about this problem, but I haven't got an answer by far... Perhaps you vote for 
the JIRA...

So does anyone know, what the problem could be with IE?
Or is there another HTMLEDITOR available somewhere in the Net?


Regards,
Andy

-Ursprüngliche Nachricht-
Von: M Litherland [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 25. Januar 2006 21:58
An: MyFaces Discussion
Betreff: inputHtml broken in IE?


Hi,

I'm building a rather complex web form in Faces (using Sun's RI out of 
NetBeans with Tomahawk) and I'd like to use the inputHtml tag from 
Tomahawk to replace a number of Textarea tags.  In trying to replace 
just one I found out that setting style="height: 30ex;" (or some other 
value) was mandatory or the editor window wouldn't show up in IE.  Once 
I got past that hitch I found out that if I saved some information in 
that tag, exited the application and went back into IE the information 
would show up briefly than be erased by whitespace.  Only by exiting and 
re-entering that 'view' would the information come back again (briefly, 
then disappear again).

Brilliant work on the tomahawk extensions, by the way.  If I can get 
this to work you'll officially have saved me weeks or months of work 
doing things like file uploads, tabbed views and WYSIWYG editors by hand.

Thanks,
Mike


__

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 swept
for the presence of computer viruses.
__


InputHtml doesn't work correctly in IE

2006-01-20 Thread andreas.mitter



Hi 
all!
 
I just 
wanted to ask again, if the developers see a chance to fix the bugs in the 
inputHtml Tag (not working correctly in IE) in the next 
time?
https://issues.apache.org/jira/browse/MYFACES-953
 
I 
would be grateful, if somebody could tell me, if you have time to fix 
it.
 
Big 
Thx if you can solve the problem!
 
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 swept
for the presence of computer viruses.
__



AW: Bug in InputHtml in IE

2006-01-15 Thread andreas.mitter



I have 
found the two JIRA Reports...
To the 
developers: Do you have time to close this JIRAs and solve the bugs in the next 
time?
 
Regards,
Andy

  -Ursprüngliche Nachricht-Von: Dave 
  [mailto:[EMAIL PROTECTED]Gesendet: Freitag, 13. Januar 2006 
  19:34An: MyFaces DiscussionBetreff: Re: Bug in InputHtml 
  in IE
  Hi
  There are two bugs on this already filed in JIRA. Please vote for them. 
  Hope someone who are familar with the code can fix it. 
  :)[EMAIL PROTECTED] wrote:
  

Hi all! 
I just realized, that the HTMLEDITOR 
t:inputHtml doesn't work correct in IE. When I load some text into the editor and when I just move the mouse 
on the editor text field, all my text disapperas... I display the htmleditor 
in a jeniapopup. Could this be a problem.
Here is my code:  
Here are two screenshot to show what i 
mean. 
When the page is loaded it looks like 
this:  

When I move the mouse into the textfield, it 
looks like this: My Text as well as the properties are gone. 
 

In Firefox everything is normal... 

Any ideas what this could be 
  
  
  
  
  Yahoo! PhotosRing in the New Year with Photo 
  Calendars. Add photos, events, holidays, 
whatever.
__

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 swept
for the presence of computer viruses.
__



AW: dataScroller

2006-01-12 Thread andreas.mitter



Another possible is that you set the rendered attribute of the 
datascroller  to false or true at the point where you get your list for the 
datatable in the backing bean.
e.g 
something like that in your backing bean:
 
rowList is the result you will display on the datatable. In my example a 
datascroller will only be displayed if the list contains more than 5 
items.
 
 if (rowList.size() > 5) 
{dbAdminDto.setShowDatascroller(true);   }   else 
{dbAdminDto.setShowDatascroller(false);   }
 
 
in the 
JSP:

    rendered="#{dbAdminDto.showDatascroller}"
...
/>
 
I hope 
it's clear, what I mean...
 
Regards
Andy
 

  -Ursprüngliche Nachricht-Von: Vladimir Coutinho 
  [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 12. Januar 2006 
  13:08An: myfaces user listBetreff: 
  dataScrollerI'm trying to render a dataScroller only when 
  the number of rows of the table are greater than rows exibited on a page.I 
  tried this :  rendered="#{((rowsCount>displayedRowsCountVar) ? true : 
  false)}" , but the dataScroller is not displayed, despite the number of 
  rows<%@ taglib uri="http://myfaces.apache.org/tomahawk" 
  prefix="t"%>... 
  for=""    
  fastStep="3"    
  pageCountVar="pageCount"    
  pageIndexVar="pageIndex"    
  rowsCountVar="rowsCount"    
  styleClass="scroller"    
  displayedRowsCountVar="displayedRowsCountVar"    
  firstRowIndexVar="firstRowIndex"    
  lastRowIndexVar="lastRowIndex"    
  pageCountVar="pageCount"    
  paginator="true"    
  paginatorMaxPages="6"    
  paginatorTableClass="paginator"    
  rendered="#{((rowsCount>displayedRowsCountVar) ? true : 
  false)}"   
   
  paginatorActiveColumnStyle="font-weight:bold;">..
__

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 swept
for the presence of computer viruses.
__



AW: Re: Redisplay-Refresh

2006-01-09 Thread andreas.mitter
Try the jeniapopup from www.jenia.org.
There you can add a method to a attribute called actionClose
This method is then executed, when the popup is closed and so you can refresh 
your page in this method
Jenia.org has a good documentation, so implementation is easy.

Regards
Andy

-Ursprüngliche Nachricht-
Von: Matias Gomez Carabias [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 9. Januar 2006 15:00
An: MyFaces Discussion
Betreff: RE: Re: Redisplay-Refresh


Laurie, I've tried calling a backing bean of the parent window before
the window.close() and the method is executed successfully but the
parent page is never refreshed.
I've also tried to submit the parent's window form via javascript but
nothing happened.

Can you post a code example for your approaches?

Thanks a lot

Matias





-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Saturday, January 07, 2006 3:32 PM
To: users@myfaces.apache.org
Subject: Re: Redisplay-Refresh

Matias Gomez Carabias wrote:
> Hi all again. I have the following question. My application has a
> collection in the main page displayed by a t:dataTable, when a button
is
> clicked , it opens a popup window , and when a button is pressed in
the
> popup window, the collection may be changed and I need it to be
> refreshed.
> 
> Any clues on how to achieve this?

Add an onUnload handler to the popup that refreshes its parent window? 
Or have the form in the popup window target (submit to) the parent 
window, and call window.close() from its onSubmit?

L.


__

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 swept
for the presence of computer viruses.
__


AW: Bug in InputSuggestAjax (ValueChangeEvent doesn't work)

2006-01-09 Thread andreas.mitter
Thanks for reply!

I have now found the scriptaculo.us library at http://script.aculo.us/downloads 
with the version 1.5.1
Which version is implemented in Myfaces?
And how can I change the libraries or rather where must I put the lib?

Regards,
Andy



-Ursprüngliche Nachricht-
Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 9. Januar 2006 14:28
An: MyFaces Discussion
Betreff: Re: Bug in InputSuggestAjax (ValueChangeEvent doesn't work)


Probably it is.

Try out the original scriptaculo.us library and try to file a bug
there if this problem persists.

regards,

martin

On 1/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have now found out, what's the problem.
> The ValueChangeEvent works in IE too(so my first thoughts were wrong), but to 
> submit and execute the ValueChangeEvent I have to press Enter for a second 
> time!!, whereas in Firefox one left-mouse click is enough (after choosing the 
> Item of the Suggested List)...In IE the mouse-click doesn't help.
> Is this just a javascript problem?
>
> Regards,
> Andy
>
> -Ursprüngliche Nachricht-
> Von: Mitter Andreas, ISX
> Gesendet: Montag, 9. Januar 2006 07:57
> An: 'MyFaces Discussion'
> Betreff: Bug in InputSuggestAjax (ValueChangeEvent doesn't work)
>
>
> Hi all!
>
> Anybody got already a solution for this problem. Anybody already faced the 
> same problem?
> For any reason, in IE a ValueChangeEvent within a InputSuggestAjax Tag 
> doesn't work (no reaction, the method is never executed), whereas in Firefox 
> everything is normal.
>
> Does anyone have an idea, how to get rid of this problem?
>
> Should I open a JIRA on this??
>
> Regards,
> Andy
>
>
> -Ursprüngliche Nachricht-
> Von: Volker Weber [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 5. Januar 2006 18:56
> An: MyFaces Discussion
> Betreff: Re: AW: Eventually Bugs in InputSuggestAjax
>
>
> seems you need to checkout the whole myfaces:
>
> http://svn.apache.org/repos/asf/myfaces/current/
>
> Harald Müller wrote:
> > Hi!
> >
> > Is there a special "configuration" needed to compile it?
> >
> > Always get an error:
> >
> > [INFO] Failed to resolve artifact.
> >
> > GroupId: org.apache.myfaces
> > ArtifactId: myfaces
> > Version: 1.1.2-SNAPSHOT
> >
> > Reason: Unable to download the artifact from any repository
> >
> >   org.apache.myfaces:myfaces:pom:1.1.2-SNAPSHOT
> >
> > from the specified remote repositories:
> >   central (http://repo1.maven.org/maven2)
> >
> > ...
> >
> > Thanks!
> > H
> >
> >
> > -Ursprüngliche Nachricht-
> > Von: Volker Weber [mailto:[EMAIL PROTECTED]
> > Gesendet: Donnerstag, 05. Jänner 2006 13:42
> > An: MyFaces Discussion
> > Betreff: Re: AW: Eventually Bugs in InputSuggestAjax
> >
> > Hi Andreas,
> >
> > [EMAIL PROTECTED] wrote:
> >
> >>Hi guys!
> >>
> >>With libs do I need?Are they in the newest nightly? And is the List then 
> >>shown right under the inputtag?
> >>By the way: Is there another way to checkout the newest nightly (not from 
> >>SVN - because the port is blocked in my company...) Perhaps can someone 
> >>send it to my or upload the newest nightly to the MyFaces Webpage?
> >
> >
> > You can checkout the svn sandbox sources via http:
> > svn co http://svn.apache.org/repos/asf/myfaces/sandbox/trunk/ sandbox
> > Hopefully port 80 is not blocked by your firewall :-).
> >
> >
> >>For the problem with the ValueChangeListener:
> >>Here you see the code snippet, which I use. I realized, that the 
> >>ValueChangemethod is even never called by IE What could be the problem. 
> >>Has anyone expirenced the same problems? ANd is there a Workaround, because 
> >>I need the Suggest Tag for my project.
> >>
> >> >>suggestedItemsMethod="#{editDto.getItems}" value="#{newPartnerDto.fname}"
> >>required="true" maxSuggestedItems="10" styleLocation="./css" size="32" 
> >>immediate="true"
> >>valueChangeListener="#{querySelectHelper.countFnames}"
> >>onchange="submit()" />
> >>
> >>Thx for help!
> >>
> >>Regards,
> >>Andy
> >>
> >>
>
> --
> 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 by
> concatenating my forename to my senders domain.
>
>
> __
>
> 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 swept
> for the presence of computer viruses.
> __
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces


__

This email and any files transmitted with it are confidential and
in

AW: Bug in InputSuggestAjax (ValueChangeEvent doesn't work)

2006-01-09 Thread andreas.mitter
I have now found out, what's the problem.
The ValueChangeEvent works in IE too(so my first thoughts were wrong), but to 
submit and execute the ValueChangeEvent I have to press Enter for a second 
time!!, whereas in Firefox one left-mouse click is enough (after choosing the 
Item of the Suggested List)...In IE the mouse-click doesn't help.
Is this just a javascript problem?

Regards,
Andy

-Ursprüngliche Nachricht-
Von: Mitter Andreas, ISX 
Gesendet: Montag, 9. Januar 2006 07:57
An: 'MyFaces Discussion'
Betreff: Bug in InputSuggestAjax (ValueChangeEvent doesn't work)


Hi all!

Anybody got already a solution for this problem. Anybody already faced the same 
problem?
For any reason, in IE a ValueChangeEvent within a InputSuggestAjax Tag doesn't 
work (no reaction, the method is never executed), whereas in Firefox everything 
is normal.

Does anyone have an idea, how to get rid of this problem?

Should I open a JIRA on this??

Regards,
Andy


-Ursprüngliche Nachricht-
Von: Volker Weber [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 5. Januar 2006 18:56
An: MyFaces Discussion
Betreff: Re: AW: Eventually Bugs in InputSuggestAjax


seems you need to checkout the whole myfaces:

http://svn.apache.org/repos/asf/myfaces/current/

Harald Müller wrote:
> Hi!
> 
> Is there a special "configuration" needed to compile it?
> 
> Always get an error:
> 
> [INFO] Failed to resolve artifact.
> 
> GroupId: org.apache.myfaces
> ArtifactId: myfaces
> Version: 1.1.2-SNAPSHOT
> 
> Reason: Unable to download the artifact from any repository
> 
>   org.apache.myfaces:myfaces:pom:1.1.2-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> 
> ... 
> 
> Thanks!
> H
> 
> 
> -Ursprüngliche Nachricht-
> Von: Volker Weber [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 05. Jänner 2006 13:42
> An: MyFaces Discussion
> Betreff: Re: AW: Eventually Bugs in InputSuggestAjax
> 
> Hi Andreas,
> 
> [EMAIL PROTECTED] wrote:
> 
>>Hi guys!
>>
>>With libs do I need?Are they in the newest nightly? And is the List then 
>>shown right under the inputtag?
>>By the way: Is there another way to checkout the newest nightly (not from SVN 
>>- because the port is blocked in my company...) Perhaps can someone send it 
>>to my or upload the newest nightly to the MyFaces Webpage?
> 
> 
> You can checkout the svn sandbox sources via http:
> svn co http://svn.apache.org/repos/asf/myfaces/sandbox/trunk/ sandbox
> Hopefully port 80 is not blocked by your firewall :-).
> 
> 
>>For the problem with the ValueChangeListener:
>>Here you see the code snippet, which I use. I realized, that the 
>>ValueChangemethod is even never called by IE What could be the problem. 
>>Has anyone expirenced the same problems? ANd is there a Workaround, because I 
>>need the Suggest Tag for my project.
>>
>>>suggestedItemsMethod="#{editDto.getItems}" value="#{newPartnerDto.fname}"
>>required="true" maxSuggestedItems="10" styleLocation="./css" size="32" 
>>immediate="true" 
>>valueChangeListener="#{querySelectHelper.countFnames}"
>>onchange="submit()" />
>>
>>Thx for help!
>>
>>Regards,
>>Andy
>>
>>

-- 
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 by
concatenating my forename to my senders domain.


__

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 swept
for the presence of computer viruses.
__


AW: Popup in new window problem

2006-01-09 Thread andreas.mitter



I 
don't know, whats exactly your problem, but I wouldn't open a window with 
window.open, but with the jeniapopup you will get at www.jenia.org
It's 
easy to implement and works fine... Perhaps you want to try.
 
Regards,
Andy

  -Ursprüngliche Nachricht-Von: Nikita Shah 
  [mailto:[EMAIL PROTECTED]Gesendet: Montag, 9. Januar 2006 
  13:14An: users@myfaces.apache.orgBetreff: Popup in new 
  window problem
   Hello,I am having problem using JSF tags in 
  the popup jsf page. I have the parent page as below: 
  And my addTask.jsp looks like 
  below:<%@ taglib uri="http://java.sun.com/jsf/html" 
  prefix="h"%><%@ taglib uri="http://java.sun.com/jsf/core" 
  prefix="f"%>Task Name Now 
  the problem is I am getting the following error on clicking the command 
  button:SEVERE: Faces context not found. getResponseWriter will fail. 
  Check if the FacesServlet has been initialized at all in your web.xml.Jan 
  9, 2006 5:33:40 PM org.apache.catalina.core.StandardWrapperValve invoke< 
  br> SEVERE: Servlet.service() for servlet jsp threw 
  exceptionjava.lang.NullPointerException    at 
  javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:878)    
  at 
  javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)    
  at 
  org.apache.jsp.pages.addTask_jsp._jspx_meth_h_outputText_0(org.apache.jsp.pages.addTask_jsp:92)    
  at 
  org.apache.jsp.pages.addTask_jsp._jspService(org.apache.jsp.pages.addTask_jsp:61)If 
  I remove the JSF "h" tags then i am able to see the html text "Task Name" in 
  popup. Can anyone please help into this matter ?I require the solution 
  urgently 
  ..TIANikita-Ability 
  is what you're capable of.Motivation determines what you do.Attitude 
  determines how well you do 
  it.-Regards,Nikita 
  ShahSoftware EngineerSNS TechnologiesPhone: Tel: 
  +91-20-30582122Cell: +919372873355Website: www.snstech.comHead 
  Office: 301 | 3rd Floor | City Towers | 17 Dhole Patil Road |
  
  
  Yahoo! PhotosGot holiday prints? See 
  all the ways to get quality prints in your hands 
ASAP.
__

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 swept
for the presence of computer viruses.
__



Bug in InputSuggestAjax (ValueChangeEvent doesn't work)

2006-01-08 Thread andreas.mitter
Hi all!

Anybody got already a solution for this problem. Anybody already faced the same 
problem?
For any reason, in IE a ValueChangeEvent within a InputSuggestAjax Tag doesn't 
work (no reaction, the method is never executed), whereas in Firefox everything 
is normal.

Does anyone have an idea, how to get rid of this problem?

Should I open a JIRA on this??

Regards,
Andy


-Ursprüngliche Nachricht-
Von: Volker Weber [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 5. Januar 2006 18:56
An: MyFaces Discussion
Betreff: Re: AW: Eventually Bugs in InputSuggestAjax


seems you need to checkout the whole myfaces:

http://svn.apache.org/repos/asf/myfaces/current/

Harald Müller wrote:
> Hi!
> 
> Is there a special "configuration" needed to compile it?
> 
> Always get an error:
> 
> [INFO] Failed to resolve artifact.
> 
> GroupId: org.apache.myfaces
> ArtifactId: myfaces
> Version: 1.1.2-SNAPSHOT
> 
> Reason: Unable to download the artifact from any repository
> 
>   org.apache.myfaces:myfaces:pom:1.1.2-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> 
> ... 
> 
> Thanks!
> H
> 
> 
> -Ursprüngliche Nachricht-
> Von: Volker Weber [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 05. Jänner 2006 13:42
> An: MyFaces Discussion
> Betreff: Re: AW: Eventually Bugs in InputSuggestAjax
> 
> Hi Andreas,
> 
> [EMAIL PROTECTED] wrote:
> 
>>Hi guys!
>>
>>With libs do I need?Are they in the newest nightly? And is the List then 
>>shown right under the inputtag?
>>By the way: Is there another way to checkout the newest nightly (not from SVN 
>>- because the port is blocked in my company...) Perhaps can someone send it 
>>to my or upload the newest nightly to the MyFaces Webpage?
> 
> 
> You can checkout the svn sandbox sources via http:
> svn co http://svn.apache.org/repos/asf/myfaces/sandbox/trunk/ sandbox
> Hopefully port 80 is not blocked by your firewall :-).
> 
> 
>>For the problem with the ValueChangeListener:
>>Here you see the code snippet, which I use. I realized, that the 
>>ValueChangemethod is even never called by IE What could be the problem. 
>>Has anyone expirenced the same problems? ANd is there a Workaround, because I 
>>need the Suggest Tag for my project.
>>
>>>suggestedItemsMethod="#{editDto.getItems}" value="#{newPartnerDto.fname}"
>>required="true" maxSuggestedItems="10" styleLocation="./css" size="32" 
>>immediate="true" 
>>valueChangeListener="#{querySelectHelper.countFnames}"
>>onchange="submit()" />
>>
>>Thx for help!
>>
>>Regards,
>>Andy
>>
>>

-- 
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 by
concatenating my forename to my senders domain.


__

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 swept
for the presence of computer viruses.
__


AW: Eventually Bugs in InputSuggestAjax

2006-01-05 Thread andreas.mitter
Hi guys!

With libs do I need?Are they in the newest nightly? And is the List then shown 
right under the inputtag?
By the way: Is there another way to checkout the newest nightly (not from SVN - 
because the port is blocked in my company...) Perhaps can someone send it to my 
or upload the newest nightly to the MyFaces Webpage?

For the problem with the ValueChangeListener:
Here you see the code snippet, which I use. I realized, that the 
ValueChangemethod is even never called by IE What could be the problem. Has 
anyone expirenced the same problems? ANd is there a Workaround, because I need 
the Suggest Tag for my project.



Thx for help!

Regards,
Andy


-Ursprüngliche Nachricht-
Von: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 4. Januar 2006 21:57
An: MyFaces Discussion
Betreff: Re: Eventually Bugs in InputSuggestAjax


Volker-

yes, resolved MYFACES-871. It works w/ your mentioned libs.

Thanks,
Matthias

On 1/4/06, Volker Weber <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> [EMAIL PROTECTED] wrote:
> > *Warnung: Aus diese Nachricht wurde ein oder mehrere Anhänge entfernt
> > (ole0.bmp). Bitte lesen Sie den bzw. die
> > "Weber-Oldenburg-Attachment-Warning.txt" Anhänge für nähere Information. *
> >
> > Hi
> >
> > I just realized, that the InputSuggestAjax Box doesn't react on a
> > ValueChangeEvent in IE... Just nothing happens... No message, nothing
> >
> > In Firefox everything is normal...
> >
> > Is this a bug?
>
> You mean the server-side ValueChangeEvent which should fired after page
> submit? I can't see how this could make a diffrerence on the browser,
> but if so: than this is a bug.
> Note: the event is not fired when fetching suggestItems.
>
> >
> >
> > I also tried the latest nightly (from 30/12), and here it's the same.
> >
> > Secondly I realized, that in IE the List of Items for the SuggestBox
> > isnot exaclty displayed under the inputtext field
> >
>
> There is also an entry for this:
> http://issues.apache.org/jira/browse/MYFACES-871 and MYFACES-854
>
> Matthias: has you checked with the correct prototype version?
>
> > Also seems to be a bug...
> > Here is a screen:
> > ole0.bmp
> >
> >
> > Should I open a JIRA
> >
> > Regards,
> > Andy
> >
> >
> Regards,
>   Volker
>
> --
> 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 by
> concatenating my forename to my senders domain.
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


__

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 swept
for the presence of computer viruses.
__


AW: What Object Type for SelectManyCheckbox

2006-01-04 Thread andreas.mitter
Thx for all your tips!

Finally I took a Long[] and that worked.

Regards,
Andy

-Ursprüngliche Nachricht-
Von: Dave Brondsema [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 4. Januar 2006 15:01
An: MyFaces Discussion
Betreff: Re: What Object Type for SelectManyCheckbox


Simon Kitching wrote:
> On Mon, 2006-01-02 at 18:00 +0100, [EMAIL PROTECTED] wrote:
> 
>>Hi all!
>>
>>I'm just trying the SelectManyCheckbox component. What is the best
>>Object type the value of the SelectManyCheckbox should point to?
>>
>>Should I take a List or a Long[]  or a Object[]? What should be
>>newPartnerDto.datenarten? 
>>And how can I retrieve the selected items in my backing bean?
>>
>>
>>>value="#{newPartnerDto.datenarten}"> 
>> 
>>
> 
> 
> Hopefully the improved taglib documentation in the current MyFaces TRUNK
> makes this clear. Search this file for "selectManyCheckbox":
> http://svn.apache.org/repos/asf/myfaces/impl/trunk/src/main/tld/myfaces_html.tld
> 
> If the docs still aren't clear enough, please let me know.
> 

If the value binding is a List, then the myfaces assumes (per the spec)
that all elements are of type String, not the same type as
SelectItem.getValue().

That should be made clear and since using a List does work unintuitively
like that, I'd suggest listing it last, after "Object array or primitive
array"


-- 
Dave Brondsema
Software Developer
Cornerstone University

__

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 swept
for the presence of computer viruses.
__


AW: unit testing in myfaces applications

2006-01-04 Thread andreas.mitter
Perhaps this thread helps you:
http://www.mail-archive.com/users@myfaces.apache.org/msg13725.html

Possibilities:
JWebUnit
httpunit
Selenium

-Ursprüngliche Nachricht-
Von: Rogerio Pereira [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 4. Januar 2006 13:47
An: MyFaces Discussion
Betreff: unit testing in myfaces applications


Hi,

How unit testing can be done in MyFaces apps?

--
Yours truly (Atenciosamente),

Rogério


__

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 swept
for the presence of computer viruses.
__


How do remove ValueBinding from different Tags

2006-01-04 Thread andreas.mitter
Title: How do remove ValueBinding from different Tags






In my JSF Pages I have some ValueBinding attributes (e.g for SelectBooleanCheckbox). 

When I submit this page and later open this page again, the values are the same (of course, because of the ValueBinding)...

So my question is now, how can I remove the ValueBinding from the Boxes so that the initial values of the page are shown...

I have already tried something like that, but without success:

newPartnerDto.getSBKundenauftragsystem().setValueBinding("kundenauftragsSystemWebediVorhanden",null);

newPartnerDto.getSBKundenauftragsystem().setValue(null);


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 swept
for the presence of computer viruses.
__



AW: Topic: How i can add a javascript confirmation dialog to a button action ?

2006-01-04 Thread andreas.mitter



I had 
the same problem, look in your HTML Source Code the JSF is 
creating.
 
There 
in the onclick Function something like  clear_...() stands after your confirm 
Function.
 
Copy 
this clear_...() Function in your JSF page before the confirm Page, then I 
should work...
 
I 
don't know, what the problem is here, but it solved the 
problem
Does 
anybody know, what the problem could be?
 

  -Ursprüngliche Nachricht-Von: jeff 
  [mailto:[EMAIL PROTECTED]Gesendet: Mittwoch, 4. Januar 2006 
  10:26An: MyFaces DiscussionBetreff: Re: Topic: How i can 
  add a _javascript_ confirmation dialog to a button action 
  ?Unfornuately it does not work. Really strangely. I saved 
  it as the pure html and it poped up a dialog, then if I click cancel, it 
  works. But on the original jsp, it always call the backing bean's action even 
  I clicked cancel! Do you encounter this problem?
  On 1/4/06, [EMAIL PROTECTED] 
  < 
  [EMAIL PROTECTED]> wrote:
  Hi!Look 
at this wiki:http://wiki.apache.org/myfaces/_javascript_WithJavaServceFacesRegards,Andy-Ursprüngliche 
Nachricht-Von: Legolas Woodland [mailto:[EMAIL PROTECTED] ]Gesendet: 
Mittwoch, 4. Januar 2006 10:15An: MyFaces DiscussionBetreff: Topic: 
How i can add a _javascript_ confirmation dialog to abutton action 
?HiHow i can add a confirmation dialog to a button action ? 
I mean when user press the delete button it shows a dialog 
box(_javascript_) and ask him/her wether he/she is sure to procedd or 
not.What about making this dialog localized and load its message from 
Stringresource ? can we use localization into _javascript_? 
  
__

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 swept
for the presence of computer viruses.
__



AW: Topic: How i can add a javascript confirmation dialog to a button action ?

2006-01-04 Thread andreas.mitter
Hi!
Look at this wiki:
http://wiki.apache.org/myfaces/JavascriptWithJavaServceFaces

Regards,
Andy


-Ursprüngliche Nachricht-
Von: Legolas Woodland [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 4. Januar 2006 10:15
An: MyFaces Discussion
Betreff: Topic: How i can add a javascript confirmation dialog to a
button action ?


Hi
How i can add a confirmation dialog to a button action ?
I mean when user press the delete button it shows a dialog box 
(JavaScript) and ask him/her wether he/she is sure to procedd or not.
What about making this dialog localized and load its message from String 
resource ? can we use localization into javascript?



What Object Type for SelectManyCheckbox

2006-01-02 Thread andreas.mitter
Title: What Object Type for SelectManyCheckbox






Hi all!


I'm just trying the SelectManyCheckbox component. What is the best Object type the value of the SelectManyCheckbox should point to?

Should I take a List or a Long[]  or a Object[]? What should be newPartnerDto.datenarten?

And how can I retrieve the selected items in my backing bean?





    

h:selectManyCheckbox>



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 swept
for the presence of computer viruses.
__



AW: AW: How to display Line breaks in Outputtext?

2005-12-22 Thread andreas.mitter
I have also tried the \n and I have now implemented a converter but it seems, 
that the
text.replaceAll("\n","");
Doesn't seem to work, because doing the following just prints the same result 
in both System outs.

System.out.println(text);
text = text.replaceAll("\n", "");
text = text.replaceAll("\r", "");
System.out.println(text);

Do I perhaps have to escape the \ before the \n? It's a bit curious..

Regards
Andy


-Ursprüngliche Nachricht-
Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 22. Dezember 2005 18:13
An: MyFaces Discussion
Betreff: Re: AW: How to display Line breaks in Outputtext?


Sorry, \r was for my special case.

\n should be right for your case!

But definitely go with Mike's suggestion and do a converter...

regards,

Martin

On 12/22/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> I have now tried to implement your code as component binding but the "\r" 
> isn't replaced and I don't know why.
> The Text is then shown like this: String\nString (Like it's in the Database - 
> no replacement has been done
>
> Here is the code:
>  value="#{infoMessagesDto.detailmessagetext}" escape="false"/>
>
> I get the text for the Outputtext from Database.
>
> If I don't implement a component binding and just a escape="false" into the 
> outputtext (and the Outputtext has a  (and not a \n or \r) in the text> 
> a carriage return is shown.
>
>
> What could be the problem?
>
> Regards,
> Andy
>
>
> -Ursprüngliche Nachricht-
> Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 22. Dezember 2005 17:30
> An: MyFaces Discussion
> Betreff: Re: AW: How to display Line breaks in Outputtext?
>
>
> Yes, of course.
>
> Thanks Mike! You are the better Santa Clause in this case ;).
>
> Even though, with a converter, you'd have to bind it to every
> component you want to treat with this special behaviour. Cause there
> is no such thing as a general string converter! With a renderer, it
> works for all instances of a component type at once...
>
> Of course, my example with a component doesn't make much sense - a
> converter would be cleaner in this case. It would make sense if you'd
> render out stuff differently depending on some other attributes of the
> component or so...
>
> regards,
>
> Martin
>
> On 12/22/05, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> > Just speculation as I've never tried it, but wouldn't it be easier
> > (and more maintainable) (and more fashionable) to write a converter to
> > do this for you?
> >
> > After all, that's why we have converters separate from renderers
> >
> > You could also use it for UIInputs as well.
> >
> > -Mike
> >
> > On 12/22/05, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> > > HOHOHO!
> > >
> > > there you go ;)
> > >
> > > even though this is a component, but you can either use that and a
> > > component binding or copy over the code to your renderer.
> > >
> > > regards,
> > >
> > > Martin
> > >
> > > P.S.: Actually, I'm a Christkindl-believer ;)
> > >
> > > public class ComponentBean
> > > {
> > > /**
> > >  * @return Ausgabetext mit Zeilenumbruch
> > >  */
> > > public UIOutput getOutputWithBreaks()
> > > {
> > >  return new OutputText();
> > > }
> > >
> > > /**
> > >  * OutputText wobei  beim Rendern als Zeilenumbruch
> > > interpretiert wird.
> > >  */
> > > public static final class OutputText extends HtmlOutputText
> > > {
> > > public OutputText()
> > > {
> > > super();
> > > }
> > >
> > > public void encodeEnd(FacesContext context) throws IOException
> > > {
> > > String text = RendererUtils.getStringValue(context, this);
> > > text = HTMLEncoder.encode(text, true, true);
> > > text = text.replaceAll("\r","");
> > > renderOutputText(context, this, text, false);
> > > }
> > >
> > > public static void renderOutputText(FacesContext facesContext,
> > > UIComponent component,
> > > String text,
> > > boolean escape)
> > > throws IOException
> > > {
> > > if (text != null)
> > > {
> > > ResponseWriter writer = facesContext.getResponseWriter();
> > > boolean span = false;
> > >
> > > if(component.getId()!=null &&
> > > !component.getId().startsWith(UIViewRoot.UNIQUE_ID_PREFIX))
> > > {
> > > span = true;
> > >
> > > writer.startElement(HTML.SPAN_ELEM, component);
> > >
> > > HtmlRendererUtils.writeIdIfNecessary(writer,
> > > component, facesContext);
> > >
> > > HtmlRendererUtils.renderHTMLAttributes(writer,
> > > component, HTML.COMMON_PASSTROUGH_ATTRIBUTES);
> > >
> > > }
> > > else

AW: AW: How to display Line breaks in Outputtext?

2005-12-22 Thread andreas.mitter
I have now tried to implement your code as component binding but the "\r" isn't 
replaced and I don't know why.
The Text is then shown like this: String\nString (Like it's in the Database - 
no replacement has been done

Here is the code:


I get the text for the Outputtext from Database.

If I don't implement a component binding and just a escape="false" into the 
outputtext (and the Outputtext has a  (and not a \n or \r) in the text> a 
carriage return is shown.


What could be the problem?

Regards,
Andy


-Ursprüngliche Nachricht-
Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 22. Dezember 2005 17:30
An: MyFaces Discussion
Betreff: Re: AW: How to display Line breaks in Outputtext?


Yes, of course.

Thanks Mike! You are the better Santa Clause in this case ;).

Even though, with a converter, you'd have to bind it to every
component you want to treat with this special behaviour. Cause there
is no such thing as a general string converter! With a renderer, it
works for all instances of a component type at once...

Of course, my example with a component doesn't make much sense - a
converter would be cleaner in this case. It would make sense if you'd
render out stuff differently depending on some other attributes of the
component or so...

regards,

Martin

On 12/22/05, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> Just speculation as I've never tried it, but wouldn't it be easier
> (and more maintainable) (and more fashionable) to write a converter to
> do this for you?
>
> After all, that's why we have converters separate from renderers
>
> You could also use it for UIInputs as well.
>
> -Mike
>
> On 12/22/05, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> > HOHOHO!
> >
> > there you go ;)
> >
> > even though this is a component, but you can either use that and a
> > component binding or copy over the code to your renderer.
> >
> > regards,
> >
> > Martin
> >
> > P.S.: Actually, I'm a Christkindl-believer ;)
> >
> > public class ComponentBean
> > {
> > /**
> >  * @return Ausgabetext mit Zeilenumbruch
> >  */
> > public UIOutput getOutputWithBreaks()
> > {
> >  return new OutputText();
> > }
> >
> > /**
> >  * OutputText wobei  beim Rendern als Zeilenumbruch
> > interpretiert wird.
> >  */
> > public static final class OutputText extends HtmlOutputText
> > {
> > public OutputText()
> > {
> > super();
> > }
> >
> > public void encodeEnd(FacesContext context) throws IOException
> > {
> > String text = RendererUtils.getStringValue(context, this);
> > text = HTMLEncoder.encode(text, true, true);
> > text = text.replaceAll("\r","");
> > renderOutputText(context, this, text, false);
> > }
> >
> > public static void renderOutputText(FacesContext facesContext,
> > UIComponent component,
> > String text,
> > boolean escape)
> > throws IOException
> > {
> > if (text != null)
> > {
> > ResponseWriter writer = facesContext.getResponseWriter();
> > boolean span = false;
> >
> > if(component.getId()!=null &&
> > !component.getId().startsWith(UIViewRoot.UNIQUE_ID_PREFIX))
> > {
> > span = true;
> >
> > writer.startElement(HTML.SPAN_ELEM, component);
> >
> > HtmlRendererUtils.writeIdIfNecessary(writer,
> > component, facesContext);
> >
> > HtmlRendererUtils.renderHTMLAttributes(writer,
> > component, HTML.COMMON_PASSTROUGH_ATTRIBUTES);
> >
> > }
> > else
> > {
> > span =
> > HtmlRendererUtils.renderHTMLAttributesWithOptionalStartElement(writer,component,
> > 
> > HTML.SPAN_ELEM,HTML.COMMON_PASSTROUGH_ATTRIBUTES);
> > }
> >
> > if (escape)
> > {
> > writer.writeText(text, JSFAttr.VALUE_ATTR);
> > }
> > else
> > {
> > writer.write(text);
> > }
> >
> > if(span)
> > {
> > writer.endElement(HTML.SPAN_ELEM);
> > }
> > }
> > }
> >
> > }
> > }
> > On 12/22/05, [EMAIL PROTECTED]
> > <[EMAIL PROTECTED]> wrote:
> > > Oh Yes Santa (Martin) Claus ;)
> > > Would be great if you could send me the code. I would be terribly 
> > > grateful if you could to that!
> > > BIG Thx!
> > >
> > > Regards,
> > > Andy
> > >
> > >
> > >
> > > -Ursprüngliche Nachricht-
> > > Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
> > > Gesendet: Donnerstag, 22. Dezember 2005 16:47
> > > An: MyFaces Dis

AW: AW: How to display Line breaks in Outputtext?

2005-12-22 Thread andreas.mitter
Oh Yes Santa (Martin) Claus ;)
Would be great if you could send me the code. I would be terribly grateful if 
you could to that!
BIG Thx!

Regards,
Andy



-Ursprüngliche Nachricht-
Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 22. Dezember 2005 16:47
An: MyFaces Discussion
Betreff: Re: AW: How to display Line breaks in Outputtext?


Yes, basically you'll need to do this.

You want the code for such a thing from me?

You'll have to nicely ask for a christmas present if you really want it ;)

regards,

Martin

On 12/22/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> So I have to write my own renderer for the Outputtext?
>
> Regards,
> Andy
>
> -Ursprüngliche Nachricht-
> Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 22. Dezember 2005 16:30
> An: MyFaces Discussion
> Betreff: Re: AW: How to display Line breaks in Outputtext?
>
>
> What you usually do is to replace the renderer of the output-text
> component - and replace all occurrences of \n with  there.
>
> Plus: you need to make sure that escape="false".
>
> regards,
>
> Martin
>
> On 12/22/05, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > How can I replace the \n with a  on the output? By javascript?
> > Because when I write  It doesn't 
> > work.
> >
> > If I use the pre Tag, what can happen with the layout?
> >
> > Regards
> > Andy
> >
> > -Ursprüngliche Nachricht-
> > Von: Luiz Carlos Geron [mailto:[EMAIL PROTECTED]
> > Gesendet: Mittwoch, 21. Dezember 2005 14:13
> > An: MyFaces Discussion
> > Betreff: Re: AW: How to display Line breaks in Outputtext?
> >
> >
> > > So the user has to write \n hardcoded into the textarea? Isn't there a way
> > > to recognize a Carriage Return, when the user presses the CR Key?
> > No. When you submit a form that contains a textarea, if you have typed:
> >
> > line
> > other line
> >
> > Then if you make:
> >
> > String str1 = this.getInputTextarea1
> > ().getValue().toString().replace("\n","");
> >
> > You'll get "lineother line". Don't do this replace, since maybe you want
> > to put the value in a textarea again.
> >
> > > And I don't unterstand what you mean with the  tag.
> > > Do you mean just:  and the
> > > Text is shown as Hello
> > > World
> > >
> > > ??
> > Yes, you can also replace (on the output) the "\n" with . I recommend 
> > this
> > last option, since it don't use the  html tag, wich can break you
> > layout.
> >
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
> __
>
> 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 swept
> for the presence of computer viruses.
> __
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces


__

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 swept
for the presence of computer viruses.
__


AW: AW: How to display Line breaks in Outputtext?

2005-12-22 Thread andreas.mitter
So I have to write my own renderer for the Outputtext?

Regards,
Andy

-Ursprüngliche Nachricht-
Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 22. Dezember 2005 16:30
An: MyFaces Discussion
Betreff: Re: AW: How to display Line breaks in Outputtext?


What you usually do is to replace the renderer of the output-text
component - and replace all occurrences of \n with  there.

Plus: you need to make sure that escape="false".

regards,

Martin

On 12/22/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> How can I replace the \n with a  on the output? By javascript?
> Because when I write  It doesn't work.
>
> If I use the pre Tag, what can happen with the layout?
>
> Regards
> Andy
>
> -Ursprüngliche Nachricht-
> Von: Luiz Carlos Geron [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 21. Dezember 2005 14:13
> An: MyFaces Discussion
> Betreff: Re: AW: How to display Line breaks in Outputtext?
>
>
> > So the user has to write \n hardcoded into the textarea? Isn't there a way
> > to recognize a Carriage Return, when the user presses the CR Key?
> No. When you submit a form that contains a textarea, if you have typed:
>
> line
> other line
>
> Then if you make:
>
> String str1 = this.getInputTextarea1
> ().getValue().toString().replace("\n","");
>
> You'll get "lineother line". Don't do this replace, since maybe you want
> to put the value in a textarea again.
>
> > And I don't unterstand what you mean with the  tag.
> > Do you mean just:  and the
> > Text is shown as Hello
> > World
> >
> > ??
> Yes, you can also replace (on the output) the "\n" with . I recommend this
> last option, since it don't use the  html tag, wich can break you
> layout.
>
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces


__

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 swept
for the presence of computer viruses.
__


AW: AW: How to display Line breaks in Outputtext?

2005-12-22 Thread andreas.mitter
How can I replace the \n with a  on the output? By javascript?
Because when I write  It doesn't work.

If I use the pre Tag, what can happen with the layout?

Regards
Andy

-Ursprüngliche Nachricht-
Von: Luiz Carlos Geron [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 21. Dezember 2005 14:13
An: MyFaces Discussion
Betreff: Re: AW: How to display Line breaks in Outputtext?


> So the user has to write \n hardcoded into the textarea? Isn't there a way
> to recognize a Carriage Return, when the user presses the CR Key?
No. When you submit a form that contains a textarea, if you have typed:

line
other line

Then if you make:

String str1 = this.getInputTextarea1
().getValue().toString().replace("\n","");

You'll get "lineother line". Don't do this replace, since maybe you want 
to put the value in a textarea again.

> And I don't unterstand what you mean with the  tag.
> Do you mean just:  and the
> Text is shown as Hello
> World
>
> ??
Yes, you can also replace (on the output) the "\n" with . I recommend this 
last option, since it don't use the  html tag, wich can break you 
layout.



AW: How to display Line breaks in Outputtext?

2005-12-21 Thread andreas.mitter
So the user has to write \n hardcoded into the textarea? Isn't there a way to 
recognize a Carriage Return, when the user presses the CR Key?

And I don't unterstand what you mean with the  tag. 
Do you mean just:  and the Text 
is shown as 
Hello
World

??
Regards
Andy


-Ursprüngliche Nachricht-
Von: Luiz Carlos Geron [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 21. Dezember 2005 13:32
An: MyFaces Discussion
Betreff: Re: How to display Line breaks in Outputtext?


> Hi!
Hi
> Is it possible to display a Line break (CR) in an outputtext tag (I get the
> value from the database)?
I think you may use the  html tag.
> And is it possible to save the line breaks from a textarea into the
> database?
Replace all \n with  and the replace the  with \n when outputting 
again to the textarea. This is only one way to do it, I think there is a 
better way to do it.
Luiz Carlos Geron



How to display Line breaks in Outputtext?

2005-12-21 Thread andreas.mitter
Title: How to display Line breaks in Outputtext?






Hi!


Is it possible to display a Line break (CR) in an outputtext tag (I get the value from the database)?


And is it possible to save the line breaks from a textarea into the database?


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 swept
for the presence of computer viruses.
__



AW: Question?

2005-12-20 Thread andreas.mitter
Perhaps you also try the following:
 http://sourceforge.net/projects/jsf-comp

It's a OnLoad Phase listener.

Regards,
Andy

-Ursprüngliche Nachricht-
Von: Yee CN [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 20. Dezember 2005 16:49
An: 'MyFaces Discussion'
Betreff: RE: Question?



Javascript function tied to the html  is not going to get
called until the page is being rendered and executed at the browser. That is
probably going to be too late.

Maybe you can put a  right after
 and place your onload code in the setter method of dummyField.

If the backing bean is in request scope you can also have a dummy managed
property and execute your onload code there.

Regards,
Yee


On 12/17/05, Sergio Flor <[EMAIL PROTECTED]> wrote:
> What about to try use onload body tag method?
>
>  You can call a javascript function on onload method and execute your code
> there.
>
> On 12/17/05, Marco <[EMAIL PROTECTED] > wrote:
> > How can i make a code executing on page load ?
> >
> > Thanks in advance
> >
>
>
>
> --
> Sérgio Flôr
> Enterprise Solutions Architect And J2EE Senior Specialist
> Getronics Brasil
> R. Verbo Divino, 1207 - 3º andar Cep: 04719-002
> Chac. Santo Antônio - São Paulo Brasil
> Tel.: + 55 11 5854-6959
> Cel.: + 55 11 8266-2269
> [EMAIL PROTECTED]


--
Alexandre Poitras
Québec, Canada


__

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 swept
for the presence of computer viruses.
__


AW: JSF web application test

2005-12-20 Thread andreas.mitter



Sounds 
interesting!
How 
long does it take to setup up such tests?
Is it 
tricky?
 
Regards,
Andy

  -Ursprüngliche Nachricht-Von: Keith Lynch 
  [mailto:[EMAIL PROTECTED]Gesendet: Dienstag, 20. Dezember 2005 
  13:48An: MyFaces DiscussionBetreff: Re: JSF web 
  application testTake a look at Seleniumhttp://www.openqa.org/selenium/ 
  There's even a firefox plugin to record your tests :)
  On 12/20/05, Jesse 
  Alexander (KBSA 21) <[EMAIL PROTECTED]> 
  wrote:
  -Original 
Message-I believe you are looking for httpunit .-/Original 
Message-Or its abstraction 
JWebUnit.Alexander Original message 
>   What is the way to write automatic tests for web 
>   application using JSF? Right now I have to open 
web>   browser to manually test it. I like to write 
tests>   that can be executed as a batch to make sure 
that>   new changes will not break existing features. 
>>   Thanks for advice.>   
  Dave
__

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 swept
for the presence of computer viruses.
__



AW: InputDate question...

2005-12-20 Thread andreas.mitter



of 
Course you can:
 
You 
just have to initalize the value in the bean and say:
 
In 
bean:
 
Date 
mydate = new Date();
 
And 
Provide Setter and Getter Methods for mydate
 
 
In 
JSP:
 

t:inputDate>
 
Regards
Andy

  -Ursprüngliche Nachricht-Von: Marco 
  [mailto:[EMAIL PROTECTED]Gesendet: Dienstag, 20. Dezember 2005 
  11:51An: users@myfaces.apache.orgBetreff: InputDate 
  question...Hi All;I have a question.How 
  can i give an inputDate component a value from a backing bean and when the 
  page is loaded the inputDate displayes the the value in the bean 
  ?Thanks a lot
__

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 swept
for the presence of computer viruses.
__



AW: How to force user to press a Button

2005-12-19 Thread andreas.mitter
Hi Mike!
I have solved it in a similiar way...
Thx for your tips!

Regards
Andy

-Ursprüngliche Nachricht-
Von: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 19. Dezember 2005 16:36
An: MyFaces Discussion
Betreff: Re: How to force user to press a Button


If you only have "rendered=true" for the command button you want to
force the users to press, and "rendered=false" for all other buttons
and links, then the user will not have any other buttons to choose
from.   There will only be one button the page.

Is this what you want?

On 12/19/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Hi Yee!
>
> No, that's not what I want.
> I want to have the following:
> A CommandButton, which the user must press, otherwise no other actions are
> made in the form. So to say I need something similiar than a required
> attribute for the CommandButton.
> Is something like that possible?
>
> Regards,
> Andy
>
> -Ursprüngliche Nachricht-
> Von: Yee CN [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 16. Dezember 2005 16:47
> An: 'MyFaces Discussion'
> Betreff: RE: How to force user to press a Button
>
>
>
>
> If you are talking about forcing a form submit on ValueChangeEvent, then you
> can set the onclick attribute to onclick="submit()". In you baking bean you
> can setup a ValueChangeListener to act on the event. Something like:
>
>
>
>  valueChangeListener="#{myBean.doSomething}"onclick="submit()"immediate="true"/>
>
>
>
> Regards,
>
> Yee
>
>
>
>  
>
>
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, 16 December 2005 9:51 PM
> To: users@myfaces.apache.org
> Subject: How to force user to press a Button
>
>
>
> Hi!
> Is it possible to force the user to press a special Commandbutton after a
> ValueChangeEvent (depending on the result of this Event)
>
> The CommandButton has no required attribute, so I don't know how to solve
> that problem.
>
> Any suggestions?
>
> 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 swept for the
> presence of computer viruses.
> __
>
> __
> 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 swept for the
> presence of computer viruses.
> __
>


__

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 swept
for the presence of computer viruses.
__


AW: How to force user to press a Button

2005-12-18 Thread andreas.mitter
Title: How to force user to press a Button



Hi 
Yee!
 
No, 
that's not what I want.
I want 
to have the following:
A 
CommandButton, which the user must press, otherwise no other actions are made in 
the form. So to say I need something similiar than a required attribute for the 
CommandButton.
Is 
something like that possible?
 
Regards,
Andy

  -Ursprüngliche Nachricht-Von: Yee CN 
  [mailto:[EMAIL PROTECTED]Gesendet: Freitag, 16. Dezember 2005 
  16:47An: 'MyFaces Discussion'Betreff: RE: How to force 
  user to press a Button
  
  If you are talking 
  about forcing a form submit on ValueChangeEvent, then you can set the onclick 
  attribute to  In you baking bean you can setup a 
  ValueChangeListener to act on the event. Something 
  like:
   
  
   
  Regards,
  Yee
   
  
  
  
  
  From: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
  Sent: Friday, 16 December 
  2005 9:51 PMTo: 
  users@myfaces.apache.orgSubject: How to force user to press a 
  Button
   
  Hi! Is it 
  possible to force the user to press a special Commandbutton after a 
  ValueChangeEvent (depending on the result of this 
  Event)
  The CommandButton has no required 
  attribute, so I don't know how to solve that problem. 
  
  Any suggestions? 
  
  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 swept for the presence 
  of computer viruses. 
  __ 
  
__

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 swept
for the presence of computer viruses.
__



How to force user to press a Button

2005-12-16 Thread andreas.mitter
Title: How to force user to press a Button






Hi!

Is it possible to force the user to press a special Commandbutton after a ValueChangeEvent (depending on the result of this Event)

The CommandButton has no required attribute, so I don't know how to solve that problem.


Any suggestions?


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 swept
for the presence of computer viruses.
__



AW: Re: AW: Re: AW: Re: What PDF library or framework to create PDF on the fly-->iText?

2005-12-14 Thread andreas.mitter
I have read that saving the PDF is not possible yet, but I don't understand 
this.
I mean when BIRT creates the PDF the Acrobat Reader should open and there I can 
save the PDF or do i err?

Regards
Andy

PS: Do you have experiences with other libraries already or don't you know them 
yourself?

-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
Gesendet: Mittwoch, 14. Dezember 2005 19:59
An: users@myfaces.apache.org
Betreff: Re: AW: Re: AW: Re: What PDF library or framework to create PDF
on the fly-->iText?


I am new to birt myself, so take it with a grain of salt what I am 
saying here,
(better ask in the birt eclipse forum)
To my understanding there are various ways, one is programmatic,
so you just define some kind of servlet which renders it on the fly
and delivers it. (alternatively you can write yourself a jsf control ;-) )

The other one is, that the bird runtime comes with a complete web 
application which allows you to link to (which might be some kind of 
security problem)


Also have in mind, that birt still has some limitations, yesterday, I 
gave it a testrun on a collection of huge data, and it started to choke
on around thousand pages, csv is also no rendering target yet, but
for your purpose of having a form like pdf report, birt should do the 
job. Also you currently have to generate the report on the fly
later incarnations will have a save option integrated.

as for deployment info: http://www.eclipse.org/birt/deploy/


I would say, give it a testrun, if it can fit your needs...

If not there are various other options (jasper, fop, velocity,
itext etc...)





[EMAIL PROTECTED] wrote:
> Hi!
> Thx for your answers...
> 
> I just have began with Eclispe Birt and it looks quite cool, but I have one 
> question.
> Can I ran such reports directly from my jsp pages via a Button?
> If yes, how can I do that, because I didn't see anything on the BIRT Homepage.
> (I only saw, that you can ran it StandAlone and so on, but I want it that way:
> Press the button (pass some parameters through the button) and display the 
> report!
> Is this possible with BIRT?
> 
> Regards
> Andy
> 
> -Ursprüngliche Nachricht-
> Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
> Gesendet: Dienstag, 13. Dezember 2005 21:55
> An: users@myfaces.apache.org
> Betreff: Re: AW: Re: What PDF library or framework to create PDF on the
> fly-->iText?
> 
> 
> Well to get it right, the original poster asked for a way to render
> the jsf files into pdf automatically, this is neither possible with 
> xsl-fo nor any other templating mechanism mentioned (cocoon and a bunch 
> of others)
> 
> What probably could be achieved would be some cocoon like intermediate 
> rendering step which renders the page
> 
> a) into a jsf page given a certain base data
> b) into a pdf page
> 
> 
> but this is out of scope for simply applying fop (xsl-fo) you will end 
> up with something cocoonish that way and it is probably out of the time
> scope of the original poster to implement such a thing.
> 
> If you do not want to spend time on a research project into code 
> generation I really can recommend, to split the view into following concerns
> 
> a) a simple HTML Rendering of your forms, which already is done in JSF
> b) a reporting part which extracts nice pdfs closely looking like your 
> forms, this can be done with any reporting tool you like,
> xsl-fo, birt, japser reports or whatever technology to use as reporting 
> frontend.
> 
> 
> 
> 
> Alan Biggs wrote:
> 
>>>FOP is a standard but almost
>>>not used, so design tools are scarce, 
>>
>>
>>Some commercial products use FOP for rendering, such as Altova Stylevision 
>>and Stylus Studio (both of which you can get free trials of).
>>I believe FOP is used quote a lot when it fits the scenario. The FOP site 
>>itself does what the original poster asked - renders a PDF version of each of 
>>its HTML pages.
>>
>>
>>
>>>you should probably give visual
>>>tools in conjunction with reporting engines a shot
>>
>>
>>Altova Stylevision is a visual tool/reporting engine based on XML with FOP 
>>integration.
>>
>>Not sure about Stylus, but Stylevision I believe allows you to import an HTML 
>>file and then generate the PDF from the result. It will also generate the 
>>XSLT for you to plug into your favourite XML library.
>>
>>FOP is undergoing a long and complete rewrite to support complex features 
>>which were hard to do in the previous version, but the current release is 
>>fairly stable and functional for the more basic layout tasks. If you are 
>>using complex layouts, you will probably get frustrated. (whatever technology 
>>you use!)
>>
>>Alan B.
>>
>>- Original Message -
>>From: Werner Punz <[EMAIL PROTECTED]>
>>Date: Tuesday, December 13, 2005 6:56 am
>>Subject: Re: AW:  Re: What PDF library or framework to create PDF on the 
>>fly-->iText?
>>
>>
>>
>>>Fop is just another approach of going from a meta description to a
>>>result 

AW: AW: Dynamic Drop Down Lists

2005-12-14 Thread andreas.mitter
Hi!

No the form is submitted (because a ValueChangeListener needs this)

With the following I display the same page again, but this time with the new 
items in the second selectbox:

if (event.getComponent().getId()
>   .equalsIgnoreCase("newpartnerMandanten")) {
>   String viewId = "/newpartner.jsp";
>   FacesContext context = 
> FacesContext.getCurrentInstance();
>   UIViewRoot view = 
> context.getApplication().getViewHandler()
>   .createView(context, viewId);
>   view.setViewId(viewId);
>   context.setViewRoot(view);
>   context.renderResponse();


-Ursprüngliche Nachricht-
Von: Mike Duffy [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 14. Dezember 2005 19:34
An: MyFaces Discussion
Betreff: Re: AW: Dynamic Drop Down Lists


Thx Andreas.

When you make a change in the first select box, does the change automatically 
propogate to second
selectbox without submitting the form (or does the change just affect the 
component tree)?

Mike

--- [EMAIL PROTECTED] wrote:

> HI Mike!
> 
> I have done it with a ValueChangeListener, it works fine.
> I get my Values for the BOX from the Database, because I have to update them 
> very quickly. So
> I'm not sure, if you will do that yourself.
> 
> Here is my code, perhaps it helps you:
> 
> 
> 
>value="#{searchDto.mandant}" 
> valueChangeListener="#{linker.listnewStandortsForSearch}"
>   onchange="submit()"  rendered="#{searchDto.showAlleAnzeigenMandant}" >
> />
>   
> 
> 
> 
>value="#{searchDto.standort}" 
> rendered="#{searchDto.showAlleAnzeigenStandort}">
>/>
>   
> 
> 
> //HERE IS THE VALUECHANGEMETHOD:
> 
> public void listnewStandortsForSearch(ValueChangeEvent event) {
> 
>   qh = (QueryHelper) FacesUtil.getManagedBean("queryHelper");
>   searchDto = (SearchDto) FacesUtil.getManagedBean("searchDto");
>   Long newvalue = null;
> 
>   // Überprüfung ob Wert der Mandanten Combobox einen anderen 
> Wert als 0
>   // (=Alle Anzeigen) liefert
>   if (((Long) event.getNewValue()).compareTo(new Long(0)) != 0) {
>   newvalue = (Long) event.getNewValue();
>   searchDto.setMandant(newvalue);
> 
>   }
>   else {
>   searchDto.setMandant(new Long(0));
>   }
> 
>   //CALL METHOD WHICH TAKES THE VALUES FOR THE 2nd BOX OUT OF THE 
> DATABASE, DEPENDING ON THE
> SELECTION OF THE FIRST BOX.
>   try {
>   qh.liststandorts(newvalue);
>   }
>   catch (Exception e) {
>   // TODO Auto-generated catch block
>   e.printStackTrace();
>   }
> 
> 
> //NOT SO INTERESSTING FOR YOU:
>   if (event.getComponent().getId()
>   .equalsIgnoreCase("newpartnerMandanten")) {
>   String viewId = "/newpartner.jsp";
>   FacesContext context = 
> FacesContext.getCurrentInstance();
>   UIViewRoot view = 
> context.getApplication().getViewHandler()
>   .createView(context, viewId);
>   view.setViewId(viewId);
>   context.setViewRoot(view);
>   context.renderResponse();
>   }
>   else {
>   String viewId = "/search.jsp";
>   FacesContext context = 
> FacesContext.getCurrentInstance();
>   UIViewRoot view = 
> context.getApplication().getViewHandler()
>   .createView(context, viewId);
>   view.setViewId(viewId);
>   context.setViewRoot(view);
>   context.renderResponse();
>   }
> 
>   }
> 
> -Ursprüngliche Nachricht-
> Von: Mike Duffy [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 14. Dezember 2005 09:37
> An: users@myfaces.apache.org
> Betreff: Dynamic Drop Down Lists
> 
> 
> Is there any way to create dynamic drop down lists in JSF without using AJAX?
> 
> Without JSF there are JavaScript techniques that can be used to dynamically 
> change a drop down
> list (e.g., based on the selection of drop down list A, the values ion drop 
> down list B are
> populated by an onclick function),
> 
> However, with JSF, the changes made in JavaScript do not correspond to the 
> values in the
> component
> tree on the server, so an error is thrown.  I've tried to update the 
> component through a
> "valueChangeListener", but this also generates an error.
> 
> Has anyone found a way to do this in JSF?  Can you send a link with an 
> example?  I Googled with
> no
> success.
> 
> Thx.
> 
> Mike
> 
> _

AW: Re: AW: Re: What PDF library or framework to create PDF on the fly-->iText?

2005-12-14 Thread andreas.mitter
Hi!
Thx for your answers...

I just have began with Eclispe Birt and it looks quite cool, but I have one 
question.
Can I ran such reports directly from my jsp pages via a Button?
If yes, how can I do that, because I didn't see anything on the BIRT Homepage.
(I only saw, that you can ran it StandAlone and so on, but I want it that way:
Press the button (pass some parameters through the button) and display the 
report!
Is this possible with BIRT?

Regards
Andy

-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
Gesendet: Dienstag, 13. Dezember 2005 21:55
An: users@myfaces.apache.org
Betreff: Re: AW: Re: What PDF library or framework to create PDF on the
fly-->iText?


Well to get it right, the original poster asked for a way to render
the jsf files into pdf automatically, this is neither possible with 
xsl-fo nor any other templating mechanism mentioned (cocoon and a bunch 
of others)

What probably could be achieved would be some cocoon like intermediate 
rendering step which renders the page

a) into a jsf page given a certain base data
b) into a pdf page


but this is out of scope for simply applying fop (xsl-fo) you will end 
up with something cocoonish that way and it is probably out of the time
scope of the original poster to implement such a thing.

If you do not want to spend time on a research project into code 
generation I really can recommend, to split the view into following concerns

a) a simple HTML Rendering of your forms, which already is done in JSF
b) a reporting part which extracts nice pdfs closely looking like your 
forms, this can be done with any reporting tool you like,
xsl-fo, birt, japser reports or whatever technology to use as reporting 
frontend.




Alan Biggs wrote:
>>FOP is a standard but almost
>>not used, so design tools are scarce, 
> 
> 
> Some commercial products use FOP for rendering, such as Altova Stylevision 
> and Stylus Studio (both of which you can get free trials of).
> I believe FOP is used quote a lot when it fits the scenario. The FOP site 
> itself does what the original poster asked - renders a PDF version of each of 
> its HTML pages.
> 
> 
>>you should probably give visual
>>tools in conjunction with reporting engines a shot
> 
> 
> Altova Stylevision is a visual tool/reporting engine based on XML with FOP 
> integration.
> 
> Not sure about Stylus, but Stylevision I believe allows you to import an HTML 
> file and then generate the PDF from the result. It will also generate the 
> XSLT for you to plug into your favourite XML library.
> 
> FOP is undergoing a long and complete rewrite to support complex features 
> which were hard to do in the previous version, but the current release is 
> fairly stable and functional for the more basic layout tasks. If you are 
> using complex layouts, you will probably get frustrated. (whatever technology 
> you use!)
> 
> Alan B.
> 
> - Original Message -
> From: Werner Punz <[EMAIL PROTECTED]>
> Date: Tuesday, December 13, 2005 6:56 am
> Subject: Re: AW:  Re: What PDF library or framework to create PDF on the 
> fly-->iText?
> 
> 
>>Fop is just another approach of going from a meta description to a
>>result with different rendering targets. FOP is a standard but almost
>>not used, so design tools are scarce, you should probably give visual
>>tools in conjunction with reporting engines a shot:
>>Following ones come to my mind
>>Jasper Reports with one of the Design tools (which there are a 
>>handful)Eclipse Birt which is free and looks also very good.
>>
>>
>>
>>
>>[EMAIL PROTECTED] wrote:
>>
>>>So you think FOP is not the best approach and idea?
>>>
>>>
>>>-Ursprüngliche Nachricht-
>>>Von: news [EMAIL PROTECTED] Auftrag von Werner Punz
>>>Gesendet: Dienstag, 13. Dezember 2005 14:21
>>>An: users@myfaces.apache.org
>>>Betreff: Re: What PDF library or framework to create PDF on the
>>>fly-->iText?
>>>
>>>
>>>There is no direct way to do that, you only can simulate the 
>>
>>form layout
>>
>>>some mentioned cocoon, but that one is only usable that way if 
>>
>>you use
>>
>>>cocoon as html frontend as well, but that seems to be out of the
>>>question, I can recommend to think about simulating your form in PDF
>>>with the given data,
>>>BIRT seems to be quite good for this area since it allows various
>>>datasources and a viusal design.
>>>Handcoding that stuff via iText is not recommendable, been there 
>>
>>done> that too much code.
>>
>>>
>>>
>>>
>>>[EMAIL PROTECTED] wrote:
>>>
>>>
I already asked some days ago, now I had time to look a bit at 
>>
>>iText and
>>
after that I'm not really smarter than before.

I'm not sure if this library will help me.
I want to do the following:
The Myfaces JSF Page is normally shown to the user (some results 
>>
>>from a
>>
report or some text from the database)
Now I want to have a button, which generates a PDF File out of 
>>
>>this screen.
>>
So the PDF Creating must be done on the fly (d

AW: Re: AW: Re: What PDF library or framework to create PDF on the fly-->iText?

2005-12-14 Thread andreas.mitter
Hi!

Regarding to your email it's not possible to transform a JSP directly into a 
PDF File???

The reason I ask is the following:
Just imagine, the user uses a search form where he can constrain the search 
result with his search constrains.
Then he gets some result -->Now I want, that the user is able to print this 
result...

Is this not possible?Has nobody ever experienced such problems?

Regards
Andy

-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
Gesendet: Dienstag, 13. Dezember 2005 21:55
An: users@myfaces.apache.org
Betreff: Re: AW: Re: What PDF library or framework to create PDF on the
fly-->iText?


Well to get it right, the original poster asked for a way to render
the jsf files into pdf automatically, this is neither possible with 
xsl-fo nor any other templating mechanism mentioned (cocoon and a bunch 
of others)

What probably could be achieved would be some cocoon like intermediate 
rendering step which renders the page

a) into a jsf page given a certain base data
b) into a pdf page


but this is out of scope for simply applying fop (xsl-fo) you will end 
up with something cocoonish that way and it is probably out of the time
scope of the original poster to implement such a thing.

If you do not want to spend time on a research project into code 
generation I really can recommend, to split the view into following concerns

a) a simple HTML Rendering of your forms, which already is done in JSF
b) a reporting part which extracts nice pdfs closely looking like your 
forms, this can be done with any reporting tool you like,
xsl-fo, birt, japser reports or whatever technology to use as reporting 
frontend.




Alan Biggs wrote:
>>FOP is a standard but almost
>>not used, so design tools are scarce, 
> 
> 
> Some commercial products use FOP for rendering, such as Altova Stylevision 
> and Stylus Studio (both of which you can get free trials of).
> I believe FOP is used quote a lot when it fits the scenario. The FOP site 
> itself does what the original poster asked - renders a PDF version of each of 
> its HTML pages.
> 
> 
>>you should probably give visual
>>tools in conjunction with reporting engines a shot
> 
> 
> Altova Stylevision is a visual tool/reporting engine based on XML with FOP 
> integration.
> 
> Not sure about Stylus, but Stylevision I believe allows you to import an HTML 
> file and then generate the PDF from the result. It will also generate the 
> XSLT for you to plug into your favourite XML library.
> 
> FOP is undergoing a long and complete rewrite to support complex features 
> which were hard to do in the previous version, but the current release is 
> fairly stable and functional for the more basic layout tasks. If you are 
> using complex layouts, you will probably get frustrated. (whatever technology 
> you use!)
> 
> Alan B.
> 
> - Original Message -
> From: Werner Punz <[EMAIL PROTECTED]>
> Date: Tuesday, December 13, 2005 6:56 am
> Subject: Re: AW:  Re: What PDF library or framework to create PDF on the 
> fly-->iText?
> 
> 
>>Fop is just another approach of going from a meta description to a
>>result with different rendering targets. FOP is a standard but almost
>>not used, so design tools are scarce, you should probably give visual
>>tools in conjunction with reporting engines a shot:
>>Following ones come to my mind
>>Jasper Reports with one of the Design tools (which there are a 
>>handful)Eclipse Birt which is free and looks also very good.
>>
>>
>>
>>
>>[EMAIL PROTECTED] wrote:
>>
>>>So you think FOP is not the best approach and idea?
>>>
>>>
>>>-Ursprüngliche Nachricht-
>>>Von: news [EMAIL PROTECTED] Auftrag von Werner Punz
>>>Gesendet: Dienstag, 13. Dezember 2005 14:21
>>>An: users@myfaces.apache.org
>>>Betreff: Re: What PDF library or framework to create PDF on the
>>>fly-->iText?
>>>
>>>
>>>There is no direct way to do that, you only can simulate the 
>>
>>form layout
>>
>>>some mentioned cocoon, but that one is only usable that way if 
>>
>>you use
>>
>>>cocoon as html frontend as well, but that seems to be out of the
>>>question, I can recommend to think about simulating your form in PDF
>>>with the given data,
>>>BIRT seems to be quite good for this area since it allows various
>>>datasources and a viusal design.
>>>Handcoding that stuff via iText is not recommendable, been there 
>>
>>done> that too much code.
>>
>>>
>>>
>>>
>>>[EMAIL PROTECTED] wrote:
>>>
>>>
I already asked some days ago, now I had time to look a bit at 
>>
>>iText and
>>
after that I'm not really smarter than before.

I'm not sure if this library will help me.
I want to do the following:
The Myfaces JSF Page is normally shown to the user (some results 
>>
>>from a
>>
report or some text from the database)
Now I want to have a button, which generates a PDF File out of 
>>
>>this screen.
>>
So the PDF Creating must be done on the fly (depending on what 
>>
>>the user
>>
sees)

H

AW: MyFaces Cherokee

2005-12-14 Thread andreas.mitter
This sounds fantastic - the ADF library looks really good, would be a big 
benefit for the MyFaces Community

Regards
Andy

-Ursprüngliche Nachricht-
Von: Guillermo Meyer [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 14. Dezember 2005 12:52
An: 'MyFaces Discussion'
Betreff: RE: MyFaces Cherokee


The original message is copied here:
http://www.jroller.com/page/RickHigh?entry=oracle_adf_added_to_myfaces

Saludos.
Guillermo.

-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED] 
Sent: Martes, 13 de Diciembre de 2005 08:19 p.m.
To: MyFaces Discussion
Subject: Re: MyFaces Cherokee

Yep, it was there. And now it's gone. Presumably the few hundred people 
there at the presentation also saw it.

I'm guessing it's just a matter of Oracle wanting the initial 
announcement to be from their PR department rather than on a blog. 
Personally, I'd prefer to hear it direct from someone who actually 
*created* ADF rather than a PR hack but we all know corporates...

Hopefully it's all for real and the "official" announcement will come 
out shortly. The ADF library looks very cool, though properly 
integrating with MyFaces in both technical and social senses is likely 
to be a big job


Nicklas Karlsson wrote:
> Umm. Where did the fresh entry about Oracle donating 100+ JSF components 
> from ADF Faces to the "MyFaces Cherokee"-project go? There was a 
> mentioning that the offical documents hadn't been signed yet. Did anyone 
> else see it before it vanished?
> 
> On 12/13/05, *Nicklas Karlsson* <[EMAIL PROTECTED] 
> > wrote:
> 
> Any more information on this?
> 
> http://www.orablogs.com/jjacobi/
> 
> 


NOTA DE CONFIDENCIALIDAD
Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las 
personas direccionadas en el mail y puede contener informacion (i)de propiedad 
exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. 
Cualquier opinion en el contenido, es exclusiva de su autor y no representa 
necesariamente la opinion de Interbanking S.A. El acceso no autorizado, uso, 
reproduccion, o divulgacion esta prohibido. Interbanking S.A no asumira 
responsabilidad ni obligacion legal alguna por cualquier informacion incorrecta 
o alterada contenida en este mensaje. Si usted ha recibido este mensaje por 
error, le rogamos tenga la amabilidad de destruirlo inmediatamente junto con 
todas las copias del mismo, notificando al remitente. No debera utilizar, 
revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si 
usted no es el destinatario. Muchas gracias.


__

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 swept
for the presence of computer viruses.
__


AW: Dynamic Drop Down Lists

2005-12-14 Thread andreas.mitter
HI Mike!

I have done it with a ValueChangeListener, it works fine.
I get my Values for the BOX from the Database, because I have to update them 
very quickly. So I'm not sure, if you will do that yourself.

Here is my code, perhaps it helps you:














//HERE IS THE VALUECHANGEMETHOD:

public void listnewStandortsForSearch(ValueChangeEvent event) {

qh = (QueryHelper) FacesUtil.getManagedBean("queryHelper");
searchDto = (SearchDto) FacesUtil.getManagedBean("searchDto");
Long newvalue = null;

// Überprüfung ob Wert der Mandanten Combobox einen anderen 
Wert als 0
// (=Alle Anzeigen) liefert
if (((Long) event.getNewValue()).compareTo(new Long(0)) != 0) {
newvalue = (Long) event.getNewValue();
searchDto.setMandant(newvalue);

}
else {
searchDto.setMandant(new Long(0));
}

//CALL METHOD WHICH TAKES THE VALUES FOR THE 2nd BOX OUT OF THE 
DATABASE, DEPENDING ON THE SELECTION OF THE FIRST BOX.
try {
qh.liststandorts(newvalue);
}
catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}


//NOT SO INTERESSTING FOR YOU:
if (event.getComponent().getId()
.equalsIgnoreCase("newpartnerMandanten")) {
String viewId = "/newpartner.jsp";
FacesContext context = 
FacesContext.getCurrentInstance();
UIViewRoot view = 
context.getApplication().getViewHandler()
.createView(context, viewId);
view.setViewId(viewId);
context.setViewRoot(view);
context.renderResponse();
}
else {
String viewId = "/search.jsp";
FacesContext context = 
FacesContext.getCurrentInstance();
UIViewRoot view = 
context.getApplication().getViewHandler()
.createView(context, viewId);
view.setViewId(viewId);
context.setViewRoot(view);
context.renderResponse();
}

}

-Ursprüngliche Nachricht-
Von: Mike Duffy [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 14. Dezember 2005 09:37
An: users@myfaces.apache.org
Betreff: Dynamic Drop Down Lists


Is there any way to create dynamic drop down lists in JSF without using AJAX?

Without JSF there are JavaScript techniques that can be used to dynamically 
change a drop down
list (e.g., based on the selection of drop down list A, the values ion drop 
down list B are
populated by an onclick function),

However, with JSF, the changes made in JavaScript do not correspond to the 
values in the component
tree on the server, so an error is thrown.  I've tried to update the component 
through a
"valueChangeListener", but this also generates an error.

Has anyone found a way to do this in JSF?  Can you send a link with an example? 
 I Googled with no
success.

Thx.

Mike

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


__

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 swept
for the presence of computer viruses.
__


AW: Re: What PDF library or framework to create PDF on the fly-->iText?

2005-12-13 Thread andreas.mitter
So you think FOP is not the best approach and idea?


-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Werner Punz
Gesendet: Dienstag, 13. Dezember 2005 14:21
An: users@myfaces.apache.org
Betreff: Re: What PDF library or framework to create PDF on the
fly-->iText?


There is no direct way to do that, you only can simulate the form layout
some mentioned cocoon, but that one is only usable that way if you use
cocoon as html frontend as well, but that seems to be out of the
question, I can recommend to think about simulating your form in PDF
with the given data,
BIRT seems to be quite good for this area since it allows various
datasources and a viusal design.
Handcoding that stuff via iText is not recommendable, been there done
that too much code.




[EMAIL PROTECTED] wrote:
> I already asked some days ago, now I had time to look a bit at iText and
> after that I'm not really smarter than before.
>  
> I'm not sure if this library will help me.
> I want to do the following:
> The Myfaces JSF Page is normally shown to the user (some results from a
> report or some text from the database)
> Now I want to have a button, which generates a PDF File out of this screen.
> So the PDF Creating must be done on the fly (depending on what the user
> sees)
>  
> How can I do that?
> Any examples?
>  
> 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 swept for the presence of computer viruses.
> __


__

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 swept
for the presence of computer viruses.
__


AW: What PDF library or framework to create PDF on the fly-->iText?

2005-12-13 Thread andreas.mitter
Perhaps a bit more exactly?

I have already read what I need to set up FOP, but I haven't read something 
about how to create the PDFs on the fly (with the same look and feel like it 
was on the screen. Perhaps you have some examples or are there HOWTO's on the 
Web?

By the way, I don't reach the FOP Homepage? Has anybody the same experiences?

Regards
Andy

-Ursprüngliche Nachricht-
Von: Marius Oancea [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 13. Dezember 2005 13:19
An: MyFaces Discussion
Betreff: Re: What PDF library or framework to create PDF on the
fly-->iText?


You have to use FOP

Francesco Consumi wrote:

> Quoting [EMAIL PROTECTED]:
>
>
>> Now I want to have a button, which generates a PDF File out of this
>> screen.
>> So the PDF Creating must be done on the fly (depending on what the
>> user sees)
>>
> Me too have that need. +1 to this question :-)
>
> ah, we have solved our problems on www.istitutodeglinnocenti.it.
> Now, this site is based on Apache 2.0.52 + Tomcat 5.5.14 + Java
> 1.5.0_06 + MyFaces 1.1.1 + sandbox (needed for s:convertDateTime).
> You may visit it, it is in italian and english too..
>
>
>
>


__

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 swept
for the presence of computer viruses.
__


What PDF library or framework to create PDF on the fly-->iText?

2005-12-13 Thread andreas.mitter



I 
already asked some days ago, now I had time to look a bit at iText and after 
that I'm not really smarter than before.
 
I'm 
not sure if this library will help me.
I want 
to do the following: 
The 
Myfaces JSF Page is normally shown to the user (some results from a report or 
some text from the database)
Now I 
want to have a button, which generates a PDF File out of this screen. 

So the 
PDF Creating must be done on the fly (depending on what the user 
sees)
 
How 
can I do that?
Any 
examples?
 
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 swept
for the presence of computer viruses.
__



AW: Execute method automatically after page has been loaded and shown to user

2005-12-07 Thread andreas.mitter
Hi Alexander!

I just don't exactly know what you mean.

In my JSF there should be a meta tag, that refreshes the page only one time 
depending on a session attribute?
I don't know how to do that the connection will be build at first, when the 
refresh starts (when the page will be rendered the second time) and not when 
the page will be rendered the first time?

Regards,
Andy



-Ursprüngliche Nachricht-
Von: Jesse Alexander (KBSA 21)
[mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 7. Dezember 2005 10:38
An: MyFaces Discussion
Betreff: RE: Execute method automatically after page has been loaded and
shown to user


Hi Andy

Have you thought about using the refresh-meta-tag?

You could render the page on first visit with a refresh header set to 1 second. 
The page would be rendered reading "--- please wait ---" and in the background 
initiate
a new request which then would build the connection, and render a new page...

A flag in the session could signal to your code whether the redirection is 
needed or not.

Advantages I see:
- standard request-processing
- the user would see the browser activity and could conclude: "ok, something is 
being 
  processed"

hth
Alexander

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 10:29 AM
To: users@myfaces.apache.org
Subject: AW: Execute method automatically after page has been loaded and shown 
to user

Hi Mike!

I like the idea with the Servlet Listener,but I see one problem:
The database connection is already openened when the Application Server is 
started
-So could there be a problem with database connection timeouts? What happens, 
when the database returns a timeout.
-If no timeout happens, isn't it a bad approach to let the connection open all 
the time, because database connection are expensive as long as I know?

What do you think about my thoughts?

Regards
Andy

-Ursprüngliche Nachricht-
Von: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 6. Dezember 2005 17:22
An: MyFaces Discussion
Betreff: Re: Execute method automatically after page has been loaded and
shown to user


Andy,

There's many ways to do this.

Some ways you could do it:

1) Use the Shale ViewController stuff to define your backing bean to
be the controlling bean for your page.  It'd be able to receive events
like pre-render and post-render.

2) Create a phase listener that ran at pre-render and post-render phase.

3) Use a servlet filter -- this is how I manage my database
connections, but I have need for my database connection to be active
at all phases of JSF.

On 12/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi All!
>
> How can I execute a method from a backing bean AUTOMATICALLY after a page
> has been loaded and shown to the user?
>
> My exactly problem is the following:
> When the user opens the first page, this page should be shown normally (and
> quickly) to the user. In the background the connection to the database
> should be build (automatically, no button should be pressed) -->I use
> Hibernate and the first connection (building of connection pool) takes some
> seconds, so this should be done in background, but the user should already
> see something in his browser (with an info, that the connection to the
> database is just built)
>
> Is there a possibility to do that?
>
> 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 swept for the
> presence of computer viruses.
> __
>


__

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 swept
for the presence of computer viruses. 
__


__

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 swept
for the presence of computer viruses.
__


AW: Execute method automatically after page has been loaded and shown to user

2005-12-07 Thread andreas.mitter
Hi Mike!

I like the idea with the Servlet Listener,but I see one problem:
The database connection is already openened when the Application Server is 
started
-So could there be a problem with database connection timeouts? What happens, 
when the database returns a timeout.
-If no timeout happens, isn't it a bad approach to let the connection open all 
the time, because database connection are expensive as long as I know?

What do you think about my thoughts?

Regards
Andy

-Ursprüngliche Nachricht-
Von: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 6. Dezember 2005 17:22
An: MyFaces Discussion
Betreff: Re: Execute method automatically after page has been loaded and
shown to user


Andy,

There's many ways to do this.

Some ways you could do it:

1) Use the Shale ViewController stuff to define your backing bean to
be the controlling bean for your page.  It'd be able to receive events
like pre-render and post-render.

2) Create a phase listener that ran at pre-render and post-render phase.

3) Use a servlet filter -- this is how I manage my database
connections, but I have need for my database connection to be active
at all phases of JSF.

On 12/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi All!
>
> How can I execute a method from a backing bean AUTOMATICALLY after a page
> has been loaded and shown to the user?
>
> My exactly problem is the following:
> When the user opens the first page, this page should be shown normally (and
> quickly) to the user. In the background the connection to the database
> should be build (automatically, no button should be pressed) -->I use
> Hibernate and the first connection (building of connection pool) takes some
> seconds, so this should be done in background, but the user should already
> see something in his browser (with an info, that the connection to the
> database is just built)
>
> Is there a possibility to do that?
>
> 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 swept for the
> presence of computer viruses.
> __
>


__

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 swept
for the presence of computer viruses.
__


Execute method automatically after page has been loaded and shown to user

2005-12-06 Thread andreas.mitter
Title: Execute method automatically after page has been loaded and shown to user






Hi All!


How can I execute a method from a backing bean AUTOMATICALLY after a page has been loaded and shown to the user?


My exactly problem is the following: 

When the user opens the first page, this page should be shown normally (and quickly) to the user. In the background the connection to the database should be build (automatically, no button should be pressed) -->I use Hibernate and the first connection (building of connection pool) takes some seconds, so this should be done in background, but the user should already see something in his browser (with an info, that the connection to the database is just built)

Is there a possibility to do that?


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 swept
for the presence of computer viruses.
__



AW: OnLoad in Myfaces -->something like in Oracle ADF? -->Problems with JSFCOMP

2005-12-06 Thread andreas.mitter
Hi!

This listener looks great, but I have problems with implementing it.
Here are the steps I took:

.)Put the jsfExt.jar into my WEB-INF/lib directory.
.)Add a onload-config.xml into my WEB-INF directory
It looks like this:
 
http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="urn:onload-config onload-config.xsd">


/login.jsp
#{linker.startdatabase}




.)Add a onload-config.xsd into my WEB-INF diretory:
(Just copied it out of the zip File)

.)Add the following into my Web.xml:

onload-rules
/WEB-INF/onload-config.xml
 


Nevertheless the XML (both the onload-config.xml and the onload-config.xsd) 
doesn't seem to be well-formed:
On the onload-config.xml I get the following error:
cvc-elt1: Cannot find the declaration of element onload-config

on the onload-config.xsd I get the following error at line: 
src-resolve 4.1: Error resolving component 'Config'. It was detected that 
Config has no namespace, but components with no target namespace are not 
referencable from schema document


Can anybody help me?

Thx
Regards,
Andy

-Ursprüngliche Nachricht-
Von: Andrew Robinson [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 5. Dezember 2005 18:22
An: MyFaces Discussion
Betreff: Re: OnLoad in Myfaces -->something like in Oracle ADF?


I have an OnLoad phase listener implemented. It is part of
http://sourceforge.net/projects/jsf-comp

Check out the "jsfExt" release. It isn't a component, but may provide
the functionality that you are looking for.

-Andrew

On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi all!
>
> Can I find a similar component like the Oracle ADF body, especially the
> "onload", component in Myfaces?
> Or can I do a workaround to load a method from the backing bean at Onload of
> the jsf page?
>
> 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 swept for the
> presence of computer viruses.
> __
>


__

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 swept
for the presence of computer viruses.
__


OnLoad in Myfaces -->something like in Oracle ADF?

2005-12-05 Thread andreas.mitter
Title: OnLoad in Myfaces -->something like in Oracle ADF?






Hi all!


Can I find a similar component like the Oracle ADF body, especially the "onload", component in Myfaces?

Or can I do a workaround to load a method from the backing bean at Onload of the jsf page?


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 swept
for the presence of computer viruses.
__



AW: Progress Bar in Myfaces

2005-12-05 Thread andreas.mitter
Yes, that's what I mean.

Did you implement it within an Myfaces Application? I just get no error stack, 
but nothing is displayed...

Here is my code which i used:

(in my jsf page:)






<[EMAIL PROTECTED] 
file="fragments/header.jspf"%>











and this is the bean (which i just copied)


import java.util.Random;

public class ProcessBean
{

private int percentage;
private int increment;
private Random random;
private int pollInterval;

public ProcessBean()
{
percentage = 0;
increment = 10;
random = new Random();
pollInterval = 250;
}

public int getPercentage()
{
if(100 < percentage)
percentage = 0 - increment;
return percentage += increment;
}

public int getRandomPercentage()
{
return random.nextInt(101);
}

public int getPollInterval()
{
return pollInterval;
}

public void setPollInterval(int i)
{
pollInterval = i;
}
}

And I have added the progressbar.jar to my LIB Folder

Have I done anything wrong?

Regards
Andy


-Ursprüngliche Nachricht-
Von: Stand Trooper [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 5. Dezember 2005 17:47
An: MyFaces Discussion
Betreff: Re: Progress Bar in Myfaces


sure, let me get it zipped up and I'll post the link here

Just to make sure, we are talking about the bpcatalog at
https://bpcatalog.dev.java.net/, yes?

thx,

timo

On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I tried it, but it didn't work.
>
> Can you post your code?
>
> -Ursprüngliche Nachricht-
> Von: Stand Trooper [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 5. Dezember 2005 17:09
> An: MyFaces Discussion
> Betreff: Re: Progress Bar in Myfaces
>
>
> I was able to get the progress bar from the blueprints to work just
> fine.  I didn't have any issues at all
>
> On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hi all!
> >
> > Has anybody experiences with Progress Bars and myfaces? I have found the Sun
> > Blueprint Progress Bar with googling but I have also read, that it doesn't
> > work with myfaces.
> >
> > Has anyone experieces with it, or are there other components that delivers a
> > progress bar functionality?
> >
> > 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 swept for the
> > presence of computer viruses.
>
>
> __
>
> 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 swept
> for the presence of computer viruses.


__

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 swept
for the presence of computer viruses.
__


AW: Progress Bar in Myfaces

2005-12-05 Thread andreas.mitter
I tried it, but it didn't work.

Can you post your code?

-Ursprüngliche Nachricht-
Von: Stand Trooper [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 5. Dezember 2005 17:09
An: MyFaces Discussion
Betreff: Re: Progress Bar in Myfaces


I was able to get the progress bar from the blueprints to work just
fine.  I didn't have any issues at all

On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi all!
>
> Has anybody experiences with Progress Bars and myfaces? I have found the Sun
> Blueprint Progress Bar with googling but I have also read, that it doesn't
> work with myfaces.
>
> Has anyone experieces with it, or are there other components that delivers a
> progress bar functionality?
>
> 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 swept for the
> presence of computer viruses.


__

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 swept
for the presence of computer viruses.
__


AW: Problems with ValueChangeListener and FacesMessages

2005-12-05 Thread andreas.mitter
Hi Martin!

Thx, but the problem still resist, because the ValueChangeMethod (where i also 
remove the messages) isn't executed, because the message from the inputtext 
component is thrown before. (If I remove the immediate=true attribute at the 
inputtext component, everything works, but I need the immediate=true, because I 
have another ValueChangeListener at this InputTextComponent)

Bytheway, do you have experiences with ProgressBars and do you know if such a 
component is planned for myfaces or is there another component which I can use 
with myfaces.

Thx
Regards
Andy

-Ursprüngliche Nachricht-
Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 5. Dezember 2005 14:49
An: MyFaces Discussion
Betreff: Re: Problems with ValueChangeListener and FacesMessages


You have to say

it.remove();

instead of

context.getMessages().remove();

regards,

Martin

On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> An second question:
>
> How can I remove the messages?
> I tried:
>
> Iterator it = context.getMessages();
> while(it.hasNext())
> {
> context.getMessages().remove();
> }
>
> But I get an error stack.
>
> javax.faces.el.EvaluationException: Exception while invoking expression 
> #{linker.setEndDate}
> at 
> org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
> at javax.faces.component.UIInput.broadcast(UIInput.java:200)
> at 
> javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
> at 
> javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:143)
> at 
> org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:260)
> at 
> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:77)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at 
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:123)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at 
> com.magnasteyr.msaaa.client.web.SecurityFilter.doFilter(SecurityFilter.java:139)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at 
> com.magnasteyr.msaaa.client.web.PortalRedirectFilter.doFilter(PortalRedirectFilter.java:105)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:534)
> Caused by: java.lang.IllegalStateException
> at java.util.AbstractList$Itr.remove(AbstractList.java:432)
> at com.magnasteyr.editool.Linker.setEndDate(Linker.java:507)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at 
> org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
> ... 29 more
>
> -Ursprüngliche Nachricht-
> Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Gesendet: M

Progress Bar in Myfaces

2005-12-05 Thread andreas.mitter
Title: Progress Bar in Myfaces







Hi all!


Has anybody experiences with Progress Bars and myfaces? I have found the Sun Blueprint Progress Bar with googling but I have also read, that it doesn't work with myfaces. 

Has anyone experieces with it, or are there other components that delivers a progress bar functionality?


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 swept
for the presence of computer viruses.
__



AW: Problems with ValueChangeListener and FacesMessages

2005-12-05 Thread andreas.mitter
An second question:

How can I remove the messages?
I tried:

Iterator it = context.getMessages();
while(it.hasNext())
{
context.getMessages().remove();
}

But I get an error stack.

javax.faces.el.EvaluationException: Exception while invoking expression 
#{linker.setEndDate}
at 
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
at javax.faces.component.UIInput.broadcast(UIInput.java:200)
at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
at 
javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:143)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:260)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:77)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:123)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
com.magnasteyr.msaaa.client.web.SecurityFilter.doFilter(SecurityFilter.java:139)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
com.magnasteyr.msaaa.client.web.PortalRedirectFilter.doFilter(PortalRedirectFilter.java:105)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.IllegalStateException
at java.util.AbstractList$Itr.remove(AbstractList.java:432)
at com.magnasteyr.editool.Linker.setEndDate(Linker.java:507)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
... 29 more

-Ursprüngliche Nachricht-
Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 5. Dezember 2005 11:57
An: MyFaces Discussion
Betreff: Re: Problems with ValueChangeListener and FacesMessages


Short answer: no way ;)

A workaround is coming to my mind: iterate through your faces-messages
in the second valueChangeListener and remove them?

regards,

Martin

On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have one component on my page, where the immediate Attribute is set to 
> true. And for this component the message is shown when the 
> ValueChangeListener from my Selectbox is executed. For others no message is 
> shown!
> The Problem is, that I need this immediate Attribute to set to true, because 
> on this component (it's a InputTextBox) I also have a ValueChangeListener.
>
> So is there a way to skip the validation for this one component (for the 
> InputTextBox) during the first ValueChangeListener method?
>
> Regards,
> Andy
>
> -Ursprüngliche Nachricht-
> Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 5. Dezember 2005 10:57
> An: MyFaces Discussion
> Betreff: Re: Problems with ValueChangeListener and FacesMessages
>
>
> It'

AW: Problems with ValueChangeListener and FacesMessages

2005-12-05 Thread andreas.mitter
I just noticed, that the ValueChangeListener method isn't executed because the 
Required validation of the InputText (where the immediate attribute is set to 
true) shows the message first.
When I enter some data into this InputText component, the ValueChangeListener 
method is executed.

Any ideas how I can get rid of this message

-Ursprüngliche Nachricht-
Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 5. Dezember 2005 11:57
An: MyFaces Discussion
Betreff: Re: Problems with ValueChangeListener and FacesMessages


Short answer: no way ;)

A workaround is coming to my mind: iterate through your faces-messages
in the second valueChangeListener and remove them?

regards,

Martin

On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have one component on my page, where the immediate Attribute is set to 
> true. And for this component the message is shown when the 
> ValueChangeListener from my Selectbox is executed. For others no message is 
> shown!
> The Problem is, that I need this immediate Attribute to set to true, because 
> on this component (it's a InputTextBox) I also have a ValueChangeListener.
>
> So is there a way to skip the validation for this one component (for the 
> InputTextBox) during the first ValueChangeListener method?
>
> Regards,
> Andy
>
> -Ursprüngliche Nachricht-
> Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 5. Dezember 2005 10:57
> An: MyFaces Discussion
> Betreff: Re: Problems with ValueChangeListener and FacesMessages
>
>
> It's only executed for the components which have immediate set to true
> - if you call facesContext.renderResponse in your valueChangeListener,
> it won't be executed for the others.
>
> regards,
>
> Martin
>
> On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > The only thing I want to do is:
> >
> > Set some values from the backing bean into some inputtext tags (and this is 
> > done in the valuechangelistener method)
> >
> > I didn't know, that the conversion and validation phase is executed...
> > Is there a way to skip this?
> >
> > Regards,
> > Andy
> >
> > -Ursprüngliche Nachricht-
> > Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
> > Gesendet: Montag, 5. Dezember 2005 10:23
> > An: MyFaces Discussion
> > Betreff: Re: Problems with ValueChangeListener and FacesMessages
> >
> >
> > so in fact you want to get rid of the submitted values, and for this
> > you recreate the whole tree?
> >
> > maybe you could use component binding on those inputTexts that should
> > loose their submitted value and reset the submitted value yourself for
> > them?
> >
> > In any case I don't see why your approach shouldn't work. Have you
> > checked if the conversion and validation phase is executed for the
> > other components except your immediate components?
> >
> > You know that for the immediate components, the conversion and
> > validation _is_ executed anyways, so you would see those messages in
> > any case?
> >
> > regards,
> >
> > Martin
> >
> > On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > No it's the same page, but in the ValueChangeListener some values for 
> > > inputtext Tags are set and I have to refresh the page to display them.
> > > This works fine, but is there another method to refresh the page?
> > >
> > > Regards,
> > > Andy
> > >
> > >
> > > -Ursprüngliche Nachricht-
> > > Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
> > > Gesendet: Montag, 5. Dezember 2005 10:14
> > > An: MyFaces Discussion
> > > Betreff: Re: Problems with ValueChangeListener and FacesMessages
> > >
> > >
> > > Hmmm...
> > >
> > > Let me try to understand what you are doing here - you want to head
> > > off to a new page, right?
> > >
> > > regards,
> > >
> > > Martin
> > >
> > > On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > Hi All!
> > > >
> > > > I have problems with a ValueChangeListener and FacesMessages.
> > > > In my JSP Site there is a Selectbox with a ValueChangeListener. 
> > > > Although I
> > > > have set the immediate=True Attribute at this Selectbox, messages are 
> > > > shown
> > > > after the ValueChangeListener has been executed..
> > > >
> > > > Can you tell me why this happens??Is it perhaps the Context.setViewRoot?
> > > >
> > > > Here is my code:(JSP)
> > > >
> > > >  > > > id="newPartnerstatus" styleClass="mustfield"
> > > > value="#{newPartnerDto.statusId}" required="true"
> > > > valueChangeListener="#{linker.setEndDate}"
> > > > onchange="submit()">
> > > > 
> > > > 
> > > >
> > > >
> > > > Here is my code:(ValueChangeListener Method:)
> > > >
> > > > public void setEndDate(ValueChangeEvent event) {
> > > > editDto = (EditDto) FacesUtil.getManagedBean("editDto");
> > > > sessionDto = (SessionDto)
> > > > FacesUtil.getManagedBean("sessionDto");
> > > > newPartnerDto = (NewPartnerDto) FacesUtil
> > > >
> > > > .getManagedBean("newPartnerDto");
> > > >
> > > 

AW: Problems with ValueChangeListener and FacesMessages

2005-12-05 Thread andreas.mitter
I have one component on my page, where the immediate Attribute is set to true. 
And for this component the message is shown when the ValueChangeListener from 
my Selectbox is executed. For others no message is shown!
The Problem is, that I need this immediate Attribute to set to true, because on 
this component (it's a InputTextBox) I also have a ValueChangeListener.

So is there a way to skip the validation for this one component (for the 
InputTextBox) during the first ValueChangeListener method?

Regards,
Andy

-Ursprüngliche Nachricht-
Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 5. Dezember 2005 10:57
An: MyFaces Discussion
Betreff: Re: Problems with ValueChangeListener and FacesMessages


It's only executed for the components which have immediate set to true
- if you call facesContext.renderResponse in your valueChangeListener,
it won't be executed for the others.

regards,

Martin

On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> The only thing I want to do is:
>
> Set some values from the backing bean into some inputtext tags (and this is 
> done in the valuechangelistener method)
>
> I didn't know, that the conversion and validation phase is executed...
> Is there a way to skip this?
>
> Regards,
> Andy
>
> -Ursprüngliche Nachricht-
> Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 5. Dezember 2005 10:23
> An: MyFaces Discussion
> Betreff: Re: Problems with ValueChangeListener and FacesMessages
>
>
> so in fact you want to get rid of the submitted values, and for this
> you recreate the whole tree?
>
> maybe you could use component binding on those inputTexts that should
> loose their submitted value and reset the submitted value yourself for
> them?
>
> In any case I don't see why your approach shouldn't work. Have you
> checked if the conversion and validation phase is executed for the
> other components except your immediate components?
>
> You know that for the immediate components, the conversion and
> validation _is_ executed anyways, so you would see those messages in
> any case?
>
> regards,
>
> Martin
>
> On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > No it's the same page, but in the ValueChangeListener some values for 
> > inputtext Tags are set and I have to refresh the page to display them.
> > This works fine, but is there another method to refresh the page?
> >
> > Regards,
> > Andy
> >
> >
> > -Ursprüngliche Nachricht-
> > Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
> > Gesendet: Montag, 5. Dezember 2005 10:14
> > An: MyFaces Discussion
> > Betreff: Re: Problems with ValueChangeListener and FacesMessages
> >
> >
> > Hmmm...
> >
> > Let me try to understand what you are doing here - you want to head
> > off to a new page, right?
> >
> > regards,
> >
> > Martin
> >
> > On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Hi All!
> > >
> > > I have problems with a ValueChangeListener and FacesMessages.
> > > In my JSP Site there is a Selectbox with a ValueChangeListener. Although I
> > > have set the immediate=True Attribute at this Selectbox, messages are 
> > > shown
> > > after the ValueChangeListener has been executed..
> > >
> > > Can you tell me why this happens??Is it perhaps the Context.setViewRoot?
> > >
> > > Here is my code:(JSP)
> > >
> > >  > > id="newPartnerstatus" styleClass="mustfield"
> > > value="#{newPartnerDto.statusId}" required="true"
> > > valueChangeListener="#{linker.setEndDate}"
> > > onchange="submit()">
> > > 
> > > 
> > >
> > >
> > > Here is my code:(ValueChangeListener Method:)
> > >
> > > public void setEndDate(ValueChangeEvent event) {
> > > editDto = (EditDto) FacesUtil.getManagedBean("editDto");
> > > sessionDto = (SessionDto)
> > > FacesUtil.getManagedBean("sessionDto");
> > > newPartnerDto = (NewPartnerDto) FacesUtil
> > >
> > > .getManagedBean("newPartnerDto");
> > >
> > > if (((Long) event.getNewValue()).compareTo(new Long(1)) 
> > > == 0
> > > && editDto.getEndDate() == null
> > > &&
> > > event.getComponent().getId().equalsIgnoreCase("status")) {
> > > editDto.setEndDate(new Date());
> > > editDto.setEndPerson(sessionDto.getUserName());
> > >
> > > String viewId = "/edit.jsp";
> > > FacesContext context =
> > > FacesContext.getCurrentInstance();
> > > UIViewRoot view =
> > > context.getApplication().getViewHandler()
> > > .createView(context, viewId);
> > >
> > > view.setViewId(viewId);
> > > context.setViewRoot(view);
> > > context.renderResponse();
> > > }
> > >
> > > }
> > >
> > > THX for help,
> > > Regards
> > > Andy
> > > _

AW: Problems with ValueChangeListener and FacesMessages

2005-12-05 Thread andreas.mitter
The only thing I want to do is:

Set some values from the backing bean into some inputtext tags (and this is 
done in the valuechangelistener method)

I didn't know, that the conversion and validation phase is executed...
Is there a way to skip this?

Regards,
Andy

-Ursprüngliche Nachricht-
Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 5. Dezember 2005 10:23
An: MyFaces Discussion
Betreff: Re: Problems with ValueChangeListener and FacesMessages


so in fact you want to get rid of the submitted values, and for this
you recreate the whole tree?

maybe you could use component binding on those inputTexts that should
loose their submitted value and reset the submitted value yourself for
them?

In any case I don't see why your approach shouldn't work. Have you
checked if the conversion and validation phase is executed for the
other components except your immediate components?

You know that for the immediate components, the conversion and
validation _is_ executed anyways, so you would see those messages in
any case?

regards,

Martin

On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> No it's the same page, but in the ValueChangeListener some values for 
> inputtext Tags are set and I have to refresh the page to display them.
> This works fine, but is there another method to refresh the page?
>
> Regards,
> Andy
>
>
> -Ursprüngliche Nachricht-
> Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 5. Dezember 2005 10:14
> An: MyFaces Discussion
> Betreff: Re: Problems with ValueChangeListener and FacesMessages
>
>
> Hmmm...
>
> Let me try to understand what you are doing here - you want to head
> off to a new page, right?
>
> regards,
>
> Martin
>
> On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi All!
> >
> > I have problems with a ValueChangeListener and FacesMessages.
> > In my JSP Site there is a Selectbox with a ValueChangeListener. Although I
> > have set the immediate=True Attribute at this Selectbox, messages are shown
> > after the ValueChangeListener has been executed..
> >
> > Can you tell me why this happens??Is it perhaps the Context.setViewRoot?
> >
> > Here is my code:(JSP)
> >
> >  > id="newPartnerstatus" styleClass="mustfield"
> > value="#{newPartnerDto.statusId}" required="true"
> > valueChangeListener="#{linker.setEndDate}"
> > onchange="submit()">
> > 
> > 
> >
> >
> > Here is my code:(ValueChangeListener Method:)
> >
> > public void setEndDate(ValueChangeEvent event) {
> > editDto = (EditDto) FacesUtil.getManagedBean("editDto");
> > sessionDto = (SessionDto)
> > FacesUtil.getManagedBean("sessionDto");
> > newPartnerDto = (NewPartnerDto) FacesUtil
> >
> > .getManagedBean("newPartnerDto");
> >
> > if (((Long) event.getNewValue()).compareTo(new Long(1)) == 0
> > && editDto.getEndDate() == null
> > &&
> > event.getComponent().getId().equalsIgnoreCase("status")) {
> > editDto.setEndDate(new Date());
> > editDto.setEndPerson(sessionDto.getUserName());
> >
> > String viewId = "/edit.jsp";
> > FacesContext context =
> > FacesContext.getCurrentInstance();
> > UIViewRoot view =
> > context.getApplication().getViewHandler()
> > .createView(context, viewId);
> >
> > view.setViewId(viewId);
> > context.setViewRoot(view);
> > context.renderResponse();
> > }
> >
> > }
> >
> > THX for help,
> > 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 swept for the
> > presence of computer viruses.
> > __
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
> __
>
> 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 swept
> for the presence of computer viruses.
> __
>


--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Course

AW: Problems with ValueChangeListener and FacesMessages

2005-12-05 Thread andreas.mitter
No it's the same page, but in the ValueChangeListener some values for inputtext 
Tags are set and I have to refresh the page to display them.
This works fine, but is there another method to refresh the page?

Regards,
Andy


-Ursprüngliche Nachricht-
Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 5. Dezember 2005 10:14
An: MyFaces Discussion
Betreff: Re: Problems with ValueChangeListener and FacesMessages


Hmmm...

Let me try to understand what you are doing here - you want to head
off to a new page, right?

regards,

Martin

On 12/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi All!
>
> I have problems with a ValueChangeListener and FacesMessages.
> In my JSP Site there is a Selectbox with a ValueChangeListener. Although I
> have set the immediate=True Attribute at this Selectbox, messages are shown
> after the ValueChangeListener has been executed..
>
> Can you tell me why this happens??Is it perhaps the Context.setViewRoot?
>
> Here is my code:(JSP)
>
>  id="newPartnerstatus" styleClass="mustfield"
> value="#{newPartnerDto.statusId}" required="true"
> valueChangeListener="#{linker.setEndDate}"
> onchange="submit()">
> 
> 
>
>
> Here is my code:(ValueChangeListener Method:)
>
> public void setEndDate(ValueChangeEvent event) {
> editDto = (EditDto) FacesUtil.getManagedBean("editDto");
> sessionDto = (SessionDto)
> FacesUtil.getManagedBean("sessionDto");
> newPartnerDto = (NewPartnerDto) FacesUtil
>
> .getManagedBean("newPartnerDto");
>
> if (((Long) event.getNewValue()).compareTo(new Long(1)) == 0
> && editDto.getEndDate() == null
> &&
> event.getComponent().getId().equalsIgnoreCase("status")) {
> editDto.setEndDate(new Date());
> editDto.setEndPerson(sessionDto.getUserName());
>
> String viewId = "/edit.jsp";
> FacesContext context =
> FacesContext.getCurrentInstance();
> UIViewRoot view =
> context.getApplication().getViewHandler()
> .createView(context, viewId);
>
> view.setViewId(viewId);
> context.setViewRoot(view);
> context.renderResponse();
> }
>
> }
>
> THX for help,
> 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 swept for the
> presence of computer viruses.
> __
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces


__

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 swept
for the presence of computer viruses.
__


Problems with ValueChangeListener and FacesMessages

2005-12-05 Thread andreas.mitter
Title: Problems with ValueChangeListener and FacesMessages






Hi All!


I have problems with a ValueChangeListener and FacesMessages.

In my JSP Site there is a Selectbox with a ValueChangeListener. Although I have set the immediate=True Attribute at this Selectbox, messages are shown after the ValueChangeListener has been executed..

Can you tell me why this happens??Is it perhaps the Context.setViewRoot?


Here is my code:(JSP)




    

h:selectOneMenu>



Here is my code:(ValueChangeListener Method:)


public void setEndDate(ValueChangeEvent event) {

        editDto = (EditDto) FacesUtil.getManagedBean("editDto");

        sessionDto = (SessionDto) FacesUtil.getManagedBean("sessionDto");

        newPartnerDto = (NewPartnerDto) FacesUtil

                .getManagedBean("newPartnerDto");

        

        if (((Long) event.getNewValue()).compareTo(new Long(1)) == 0

                && editDto.getEndDate() == null

                && event.getComponent().getId().equalsIgnoreCase("status")) {

            editDto.setEndDate(new Date());

            editDto.setEndPerson(sessionDto.getUserName());


            String viewId = "/edit.jsp";

            FacesContext context = FacesContext.getCurrentInstance();

            UIViewRoot view = context.getApplication().getViewHandler()

                    .createView(context, viewId);

            

            view.setViewId(viewId);

            context.setViewRoot(view);

            context.renderResponse();

        }


}


THX for help, 

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 swept
for the presence of computer viruses.
__



AW: what reporting/charting library or framework i should use with jsf?

2005-11-29 Thread andreas.mitter



I 
nearly have the same question.
I just 
want to convert my JSF Pages into PDFs so that they are better formatted to 
print.(and perhaps but some extra information on the PDF)
Which 
library would be best for this?
 
Regards
Andy

  -Ursprüngliche Nachricht-Von: Rafael Nami 
  [mailto:[EMAIL PROTECTED]Gesendet: Dienstag, 29. November 2005 
  12:12An: MyFaces DiscussionBetreff: Re: what 
  reporting/charting library or framework i should use with 
  jsf?It depends on what you need...If you want just 
  tabular reporting in PDF, you can use many options(displaytag, iText, POI, 
  eclipse BIRTH, and many other...) or even dataTable.If you want tabular 
  reporting AND graphical reporting, you have to search for something like 
  JasperReports, Crystal Reports, etc...If you want just regular graphic 
  reporting, JFreeChart is very good for it.But if you want something like 
  BI graphical reports, you can use JPivot, or to some customizable things, you 
  can use java2D API to generate the image, and then call it with JSF(I've done 
  binary response and calling a new image produced, best was the last 
  one).As you can see, there are many options, it just depend on what you 
  are needing.Hope that it helpsRafael Mauricio Nami
  2005/11/28, Legolas Woodland <[EMAIL PROTECTED]>:
  HiThank 
you for reading my post.which charting/reporting framework/library i 
should use with my jsfapplication ?is there any chart library 
available 
?
__

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 swept
for the presence of computer viruses.
__



AW: AW: Errors messages params

2005-11-29 Thread andreas.mitter
I don't exactly know what you mean.
I thought you want to display a message (in the jsp page) with your own params?
If this is your attention, then my way works.

Please describe more exactly what you really want to do?

Regards
Andy

-Ursprüngliche Nachricht-
Von: Luca Conte [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 29. November 2005 10:03
An: MyFaces Discussion
Betreff: Re: AW: Errors messages params


Hi, thanks! I would like to set that params into the jsp and not into
the backedBean!
[EMAIL PROTECTED] ha scritto:

>You can use the MessageUtils Class and its method addmessage
>http://myfaces.apache.org/javadoc/impl/org/apache/myfaces/util/MessageUtils.html
>
>addMessage(javax.faces.application.FacesMessage.Severity severity, 
>java.lang.String messageId, java.lang.Object[] args, java.lang.String 
>forClientId, javax.faces.context.FacesContext facesContext) 
>
>There you can add a Object[] which could contain your field.
>
>In the message in the properties file you simple say:
>
>messageId=Error in field {0}
>
>where{0} comes from the Object[]
>
>Regards
>Andy
>
>  
>

 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Personalizza il tuo cellulare con le immagini più divertenti o con le foto di 
chi ami
* 
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3117&d=29-11


__

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 swept
for the presence of computer viruses.
__


AW: Errors messages params

2005-11-25 Thread andreas.mitter
You can use the MessageUtils Class and its method addmessage
http://myfaces.apache.org/javadoc/impl/org/apache/myfaces/util/MessageUtils.html

addMessage(javax.faces.application.FacesMessage.Severity severity, 
java.lang.String messageId, java.lang.Object[] args, java.lang.String 
forClientId, javax.faces.context.FacesContext facesContext) 

There you can add a Object[] which could contain your field.

In the message in the properties file you simple say:

messageId=Error in field {0}

where{0} comes from the Object[]

Regards
Andy

-Ursprüngliche Nachricht-
Von: Luca Conte [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 25. November 2005 13:22
An: MyFaces Discussion
Betreff: Errors messages params


Hi guys,
does exists a way to control the error message params? I found the way
to use my own error/validation messages but what about if I would like
to put (for example) my own "{0}" value?

Thx a lot

 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Scarica la Rana Pazza sul tuo cellulare - come vista in televisione!
* La prima suoneria è GRATIS!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3539&d=25-11


__

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 swept
for the presence of computer viruses.
__


  1   2   >