Re: JSF in Google App Engine for Java

2009-04-09 Thread Mert Çalışkan
ok, I got some progress on that and wanted to share it,

so I deployed tomahawk sample webapp to appspot,

http://3.latest.tomahawkwebapp.appspot.com/home.jsf

There were some jsp compilation problems with like
inputHtml-multiple.jsp page and such so I omitted those.
And google blocked me from deploying all of the jsps, for now these
are the ones working for me,

http://3.latest.tomahawkwebapp.appspot.com/dataScroller.jsf
http://3.latest.tomahawkwebapp.appspot.com/tree2HideRoot.jsf

The stuff is not that stable at the moment. I'm getting error500
from time to time.. :)

Cheers,

Mert.


On Wed, Apr 8, 2009 at 7:11 PM, Mert Çalışkan mcalis...@gmail.com wrote:
 I signed up for that. But apparently they'll give out the permission
 only for 10k users.
 in the docs, I only saw the GWT on the front-end though.

 Cheers,

 Mert.

 On Wed, Apr 8, 2009 at 7:06 PM, Bruno Aranda brunoara...@gmail.com wrote:
 Hi,

 Today Google App Engine for Java has been released. I was wondering if it
 would play with JSF and I don't have the time to check now. According to the
 documentation, it is unknown if it can work in there. Has someone tested
 that?

 http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine

 Cheers,

 Bruno




Re: JSF in Google App Engine for Java

2009-04-09 Thread Mert Çalışkan
yeah, I'm hopeful on that since this is the second day of the stuff :)

here is a list of the things that will do good (or not) in the appengine env.

http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine?hl=en

M

2009/4/9 Bruno Aranda brunoara...@gmail.com:
 Well, that is a promissing start. At least it seems to support basic JSF
 1.1... with many limitations for now I guess...

 Thanks!

 Bruno

 2009/4/9 Mert Çalışkan mcalis...@gmail.com

 ok, I got some progress on that and wanted to share it,

 so I deployed tomahawk sample webapp to appspot,

 http://3.latest.tomahawkwebapp.appspot.com/home.jsf

 There were some jsp compilation problems with like
 inputHtml-multiple.jsp page and such so I omitted those.
 And google blocked me from deploying all of the jsps, for now these
 are the ones working for me,

 http://3.latest.tomahawkwebapp.appspot.com/dataScroller.jsf
 http://3.latest.tomahawkwebapp.appspot.com/tree2HideRoot.jsf

 The stuff is not that stable at the moment. I'm getting error500
 from time to time.. :)

 Cheers,

 Mert.


 On Wed, Apr 8, 2009 at 7:11 PM, Mert Çalışkan mcalis...@gmail.com wrote:
  I signed up for that. But apparently they'll give out the permission
  only for 10k users.
  in the docs, I only saw the GWT on the front-end though.
 
  Cheers,
 
  Mert.
 
  On Wed, Apr 8, 2009 at 7:06 PM, Bruno Aranda brunoara...@gmail.com
  wrote:
  Hi,
 
  Today Google App Engine for Java has been released. I was wondering if
  it
  would play with JSF and I don't have the time to check now. According
  to the
  documentation, it is unknown if it can work in there. Has someone
  tested
  that?
 
 
  http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine
 
  Cheers,
 
  Bruno
 
 




Re: JSF in Google App Engine for Java

2009-04-08 Thread Mert Çalışkan
I signed up for that. But apparently they'll give out the permission
only for 10k users.
in the docs, I only saw the GWT on the front-end though.

Cheers,

Mert.

On Wed, Apr 8, 2009 at 7:06 PM, Bruno Aranda brunoara...@gmail.com wrote:
 Hi,

 Today Google App Engine for Java has been released. I was wondering if it
 would play with JSF and I don't have the time to check now. According to the
 documentation, it is unknown if it can work in there. Has someone tested
 that?

 http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine

 Cheers,

 Bruno



Re: JSF - display a collection in one line?

2009-02-24 Thread Mert Çalışkan
I did that with a converter while ago,

http://www.jroller.com/mert/entry/collectiontocommaseperatedtextconverter

Mert

On Tue, Feb 24, 2009 at 12:11 PM, kareda k...@digiplace.ch wrote:



 Hi,
 A collection of Strings, I just want to display them in one line.
 Is that possible?


 --
 View this message in context:
 http://www.nabble.com/JSF---display-a-collection-in-one-line--tp22179299p22179299.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: MyFaces - Avoid submitting a form twice

2008-09-30 Thread Mert Çalışkan
I did some work on that,
blogged at

http://www.jroller.com/mert/entry/jsf_preventing_double_form_submit

Cheers,

Mert..

On Tue, Sep 30, 2008 at 1:16 PM, RajaManickam 
[EMAIL PROTECTED] wrote:

 Hi,
 I am trying to implement a functionality where the users should be
 prevented from submitting the form twice. I tried using javascript which
 disables the button on user click. But the issue is the action itsels is not
 getting called when the button is disabled.

 Can someone suggest me a solution for this issue?

 Thanks in Advance.

 Regards,
 Raja




how to expand tree2 initially?

2008-02-20 Thread Mert Çalışkan
Calling the expandAll() method in a getter / phaselistener / constructor
doesn't work at the first request. But tree is expanded
with the consequent requests..

Is there any practice to expand all nodes of a tree2 initially?

Regards,

Mert..


Re: how to expand tree2 initially?

2008-02-20 Thread Mert Çalışkan
trinidad has a tree2?
I'm talkin' about tomahawk..

Mert

2008/2/20 Zigc Junk [EMAIL PROTECTED]:

 r u talking about trinidad or something else?

 Bill


 On Wed, Feb 20, 2008 at 7:22 AM, Mert Çalışkan [EMAIL PROTECTED]
 wrote:

  Calling the expandAll() method in a getter / phaselistener / constructor
  doesn't work at the first request. But tree is expanded
  with the consequent requests..
 
  Is there any practice to expand all nodes of a tree2 initially?
 
  Regards,
 
  Mert..
 




Re: YUI4JSF v0.6 is out..

2007-07-26 Thread Mert Çalışkan
Thai Dang Vu:

We're doing some profile work with maven to support other frameworks. For
now it's complatible with Myfaces 1.1.x, RI 1.1.x, Ajax4JSF  Tomahawk.
We'll work on the seam and facelets support. And after the v1.0 release of
yui4jsf, we'll work on the jsf1.2 support.

The next release will have an enhanced component-set that contains
file-upload, slideshow, custom-trees and etc.

Duong BaTien:

yeah it has ASL 2.0 licence with an embeded yui-licence.

Alexander Wallace:

not with this release. We'll work on that..


Any other comments  suggestions are all welcome.

Regards,

Mert..
http://www.jroller.com/page/mert


On 7/25/07, Duong BaTien [EMAIL PROTECTED] wrote:

 Thanks. Look like we will have a lot of fun for some time.

 BaTien

 On Tue, 2007-07-24 at 20:59 +0200, Matthias Wessendorf wrote:
  the good one,
 
  ASL 2.0
 
  http://sourceforge.net/projects/yui4jsf
 
  -M
 
  On 7/24/07, Duong BaTien [EMAIL PROTECTED] wrote:
   Wow. What is the license?
  
   BaTien
  
   On Tue, 2007-07-24 at 15:25 +0300, Mert Çalışkan wrote:
YUI4JSF is a new custom component library for JavaServer Faces. It
consists of several rich components based on YUI controls like
calendar, tabview, treeview, slider, datatable  etc. It also comes
with extra features like Ajax Forms, Layout Engine. All of these
features are based on YUI utilities and controls.
   
Check out the online demo:
   
http://www.nightdev.devisland.net/yui4jsf-examples
   
Project Main Page:
   
   
http://yui4jsf.sourceforge.net
   
   
Regards,
   
Mert..
http://www.jroller.com/page/mert
   
  
  
 
 




YUI4JSF v0.6 is out..

2007-07-24 Thread Mert Çalışkan
YUI4JSF is a new custom component library for JavaServer Faces. It consists
of several rich components based on YUI controls like calendar, tabview,
treeview, slider, datatable  etc. It also comes with extra features like
Ajax Forms, Layout Engine. All of these features are based on YUI utilities
and controls.

Check out the online demo:
http://www.nightdev.devisland.net/yui4jsf-examples

Project Main Page:

http://yui4jsf.sourceforge.nethttp://yui4jsf.sourceforge.net/site/index.html


http://yui4jsf.sourceforge.net/site/index.html

Regards,

Mert..
http://www.jroller.com/page/mert


Re: Tool for testing

2007-07-17 Thread Mert Çalışkan

I'd go with the JMeter,
unless you have port redirection (like with CAS etc.)  https..
and IBM Performance Tester covers those all..

Another choice for the work could be openSTA. It has a recorder also.

Mert..


On 7/17/07, Jesse Alexander (KSFD 121) [EMAIL PROTECTED]
wrote:


Hi

last time I used JMeter with a JSF-app i just used the
proxy-recorder
let the tool do the work for you...
- start the proxy-recorder
- point your browser to use that proxy
- use the app
- let then jmeter execute the recorded script


If you want just functional testing: Selenium


hth
Alexander

-Original Message-
From: Peter Dahm [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 17, 2007 11:56 AM
To: users@myfaces.apache.org
Subject: Tool for testing

Hi,

who has a recommendation wich testing tool is the best one for testing
an
jsf application.

Does someone have experiences with Apache jMeter ? Here I have problems
to
build a testplan with parameters and session information.

Regards

Peter







Re: h:graphicImage and Servlets

2007-05-15 Thread Mert Çalışkan

An example which I used in HibernateTrace.

http://jsf-comp.svn.sourceforge.net/viewvc/jsf-comp/trunk/HibernateTrace/HibernateTraceComponent/JavaSource/net/sf/jsfcomp/hibernatetrace/util/HTResourceLoaderPhaseListener.java?view=markup


Regards,

Mert..

On 5/15/07, omidh [EMAIL PROTECTED] wrote:



Hi all,
I would like to show images in my portlet, which are saved in a Mysql db,
so
I wrote a servlet
which helps to download files from the db. Now I use these servlet to
receive also the Images but
it does not work... does anyone know a solution?

here the way I use it:

h:graphicImage value=/FileServlet/?file_id=#{datatype.fileID}/
generated code:  i m g src=/MileStoneBeta/FileServlet/?file_id=1

and here the servlet (nothing special):

protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws
ServletException, IOException {

FacesContext fctx = getFacesContext(request, response);

ValueBinding bind = FacesContext.getCurrentInstance
().getApplication()
.createValueBinding(#{facadeService});
if (bind == null)
logger.fatal(ValueBinding is null);

FacadeService bean = (FacadeService) bind.getValue(fctx);


Integer fileId = Integer.parseInt(request.getParameter
(file_id));

UFile file =
(UFile)bean.getMileStoneService().getEntryManager().loadById(UFile.class,
fileId);
logger.debug(file=+file);
if(file != null){
response.setContentType(file.getContentType());
response.setContentLength(file.getContent
().length);
response.setHeader(Content-Disposition,
attachement; filename=\ +
file.getFileName() + \);
if(logger.isDebugEnabled())
logger.debug(sending file ...);
response.getOutputStream().write(file.getContent
());
response.flushBuffer();
}

}

or is there a simple way to do it? ;)

thanks in advance,
Omid
--
View this message in context:
http://www.nabble.com/h%3AgraphicImage-and-Servlets-tf3757832.html#a10620803
Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: JSF lifecyle - managed-bean

2007-02-05 Thread Mert Çalışkan

As Juergen Hoeller stated in springframework mail-list, I totally agree with
him..

*Consider moving your JSF managed-bean definitions down to the Spring
context: Since Spring 2.0, you should be able to define a direct Spring bean

equivalent even for request and session scope.

Once the beans are defined in the Spring context, you've got all of Spring's

functionality available to them: init and destroy callbacks, Spring's
default property type conversion, auto-proxying, etc.

FWIW, JSF applications based on a Spring application context might not
define *any* JSF managed-beans at all, using bean definitions in the Spring
context for all their managed bean needs. *


Mert..


On 2/6/07, Cagatay Civici [EMAIL PROTECTED] wrote:


Hi,

I agree with Martin, jsf-spring makes no sense to me because of the Spring
Variable Resolver. I also liked the idea of using spring scoped beans as JSF
backing beans since two IOC containers seem to be unnecessary for an app and
it's wise to select the sophisticated one:)

Regards

Cagatay

On 2/5/07, Marco Mistroni [EMAIL PROTECTED] wrote:

 Hi,
  i give my 2 cents here
 you can expose your JSF via spring either using Spring variable resolver
 or jsf-spring

 i have a bean (non-JSF, but still spring-managed) which has setters, and
 in my init method i am using
 some of the data from setters..

 all i needed to do was to declare an init-method for my bean in
 applicationContext.xml

 if you expose your JSF beans as Spring beans (jsf-spring or not) they
 will behave exactly like Spring beans

 hth
 marco



 On 2/5/07, Martin Marinschek  [EMAIL PROTECTED] wrote:
 
  From my experience: don't use jsf-spring-library, use Spring 2.0directly 
instead.
 
  Jsf-spring is known to cause class-loader issues in some containers,
  e.g. Websphere.
 
  In Spring 2.0, you can define managed beans with session and
  request-scope perfectly!
 
  regards,
 
  Martin
 
  On 2/5/07, Beelen, Marco  [EMAIL PROTECTED] wrote:
  
   Hello Lisa,
  
   I'm solving that problem by implementing the
   InitializingBean-interface
   of Spring on my managed bean and use the jsf-spring-library (
   http://jsf-spring.sourceforge.net/ ) to make sure that the method is
   being called:
  
   My faces-context.xml contains:
  
   application
   view-handlercom.sun.facelets.FaceletViewHandler
   /view-handler
  
  
   variable-resolver
   org.springframework.web.jsf.DelegatingVariableResolve
   r/variable-resolver
   /application
  
   And in the web.xml I added:
  
   listener
   listener-class
  
   de.mindmatters.faces.spring.context.ContextLoaderListener
   /listener-class
   /listener
  
  
   With kind regards,
   Marco
  
  
   -Original Message-
   From: Lisa [mailto: [EMAIL PROTECTED] ]
   Sent: maandag 5 februari 2007 6:44
   To: users@myfaces.apache.org
   Subject: JSF lifecyle - managed-bean
  
  
   Is there a way to automatically call an init() method after all
   setters
   have
   been called on a managed-bean?  I am looking for something I can put
   in
   the
   .xml config file or an interface that I can extend.
  
   Spring has this facility.  We are using Spring for most of the
   framework
   but
   using JSF managed-bean facility for all backing beans.
  
  
   thanks
  
  
   L
   --
   View this message in context:
  
   http://www.nabble.com/JSF-lifecyle---managed-bean-tf3172695.html#a880137
   8
   Sent from the MyFaces - Users mailing list archive at 
Nabble.comhttp://nabble.com/
   .
  
  
  
  
   
--
  
   Notice:  This e-mail message, together with any attachments,
   contains
   information of Merck  Co., Inc. (One Merck Drive, Whitehouse
   Station,
   New Jersey, USA 08889), and/or its affiliates (which may be known
   outside the United States as Merck Frosst, Merck Sharp  Dohme or
   MSD
   and in Japan, as Banyu - direct contact information for affiliates
   is
   available at http://www.merck.com/contact/contacts.html ) that may
   be
   confidential, proprietary copyrighted and/or legally privileged. It
   is
   intended solely for the use of the individual or entity named on
   this
   message. If you are not the intended recipient, and have received
   this
   message in error, please notify us immediately by reply e-mail and
   then
   delete it from your system.
  
  
   
--
  
 
 
 
  --
 
  http://www.irian.at
 
  Your JSF powerhouse -
  JSF Consulting, Development and
  Courses in English and German
 
  Professional Support for Apache MyFaces






Re: How to handle double clicks on commandButtons

2006-12-07 Thread Mert Çalışkan

Yes..

Use a hashmap for this and put the tokens with a keyVal for each page, e.g.
with viewId.

And there is also another concern..Ajax frameworks...A workaround for
AjaxAnywhere can be stated like this:
For an AA request, requestHeaderMap contains a value with the key,
aaxmlrequest. So check for this if one exists in map.

Regards,

Mert..


On 12/7/06, Martin Grotzke [EMAIL PROTECTED] wrote:


Hi Mert,

On Wed, 2006-12-06 at 22:30 +0200, Mert Çalışkan wrote:
 Briefly,

 - A phaselistener that checks the session for a uniqueToken. If there
 is none, generates a new one and stores it in session. If there is
 one, checks the equality of that one with the one submitted with form.
 - An extended formRenderer that renders the session-scoped-uniqueToken
 as the hidden field to page.

 Of course this approach should be improved for popups and frames ;)
Do you have experiences with this?

These days I also implemented the solution with a phase listener and an
extended form renderer and ran into issues with popups.

Thanx in advance,
cheers,
Martin



 Regards,

 Mert..


 On 12/6/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
 You could also install a servlet filter that serializes all
 requests
 for the same session.   There are probably other thread-safety
 issues
 when processing multiple requests simulaneously for the same
 session
 under JSF 1.1.  You'd still need to work through the
 double-click
 detection, but it'd be easier if you're assured that no other
 request
 is occurring for the session.

 On 12/6/06, Adrian Mitev [EMAIL PROTECTED] wrote:
  Shale has component s:token that could handle double submit.
 
  2006/12/6, Charbel Abdul-Massih 
 [EMAIL PROTECTED]:
  
  
  
  
   What's the best way to handle double clicks on buttons in
 JSF???
  
  
  
   Thanks,
   Charbel
 
 

--
Martin Grotzke
http://www.javakaffee.de/blog/





Problem with float binding..Spec issue or something else?

2006-11-13 Thread Mert Çalışkan
I have a domain object called Total that contains property named amount.package domain;public class Total 
{ private float amount; public float getAmount() 
{ return amount; } public void setAmount(
float amount) { this.amount = amount; }}The amount proerty is binded to the inputText on the page. When the user enters value greater then 2^14(16777216) the updated model value becomes inconsistent. For example the value: 16777217 is converted and updated to the model as 16777216. Here is the shale test case i wrote to test the situation. There is an assertNotSame() method at the end of thetestCase which should be an assertSame().
package dev;


import javax.faces.component.UIForm;
import javax.faces.component.UIInput;
import javax.faces.component.html.HtmlForm;
import javax.faces.component.html.HtmlInputText;
import javax.faces.convert.NumberConverter;
import javax.faces.el.ValueBinding;

import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.shale.test.base.AbstractJsfTestCase;
import com.sun.faces.renderkit.html_basic.TextRenderer;
import domain.Total;

public class NumberConverterTester extends AbstractJsfTestCase {

	private UIInput inputText;
	
	NumberConverter converter;
	
	private TextRenderer inputTextRenderer;
	
	public NumberConverterTester(String testName) {
		super(testName);
	}

	public static Test suite() {
		return new TestSuite(NumberConverterTester.class);
	}
	
	public void setUp() {
		super.setUp();
		
		// view
		UIForm form = new HtmlForm();
		form.setId(form1);
		form.setParent(facesContext.getViewRoot());
		
		// the component
		inputText = new HtmlInputText();
		inputText.setId(text1);
		inputText.setParent(form);
	
		// the converter
		converter = new NumberConverter();
		converter.setType(number);
		inputText.setConverter(converter);
		
		Total myTotal = new Total();
		ValueBinding valueBinding = facesContext.getApplication().createValueBinding(#{myTotal.amount});
		inputText.setValueBinding(value, valueBinding);
		facesContext.getExternalContext().getRequestMap().put(myTotal, myTotal);
	}
	
	public void tearDown() {
		super.tearDown();
	}
	
	public void testConvertWorksFineWithPrimitiveFloatValueEquals2over24() {
		facesContext.getExternalContext().getRequestParameterMap().put(form1:text1, 16777216);
		
		inputTextRenderer = new TextRenderer();
		inputTextRenderer.decode(facesContext, inputText);
		inputText.processValidators(facesContext);
		inputText.processUpdates(facesContext);
		
		Total amountFromModel = (Total) facesContext.getApplication().getVariableResolver().resolveVariable(facesContext, myTotal);
		String amount = inputText.getConverter().getAsString(facesContext,inputText, new Float(amountFromModel.getAmount()));
		
		assertEquals(amount, 16.777.216);
	}
	
	public void testConvertDoesntWorkRightWithPrimitiveFloatValueAbove2over24() {
		facesContext.getExternalContext().getRequestParameterMap().put(form1:text1, 16777217);
		
		inputTextRenderer = new TextRenderer();
		inputTextRenderer.decode(facesContext, inputText);
		inputText.processValidators(facesContext);
		inputText.processUpdates(facesContext);
		
		Total amountFromModel = (Total) facesContext.getApplication().getVariableResolver().resolveVariable(facesContext, myTotal);
		String amount = inputText.getConverter().getAsString(facesContext,inputText, new Float(amountFromModel.getAmount()));
		
		assertNotSame(amount, 16.777.217);
	}
}

I tested this with jsf 1.1_02. Any ideas? Is there a problem with the spec. or something else? 

Regards,
Mert..


Re: URL of myfaces application

2006-10-12 Thread Mert Çalışkan
In the backing bean of the target page, define a variable.Iinitialize its value in the getter method.
 private
StringmyParam;publicStringgetMyParam
(){if(myParam==null
){myParam=(String)expressionResolver
(#{param.abc});}
returnmyParam;}
publicvoidsetMyParam(StringmyParam
){this.myParam=myParam;}
 publicObjectexpressionResolver(String_expression_
){ Objectvalue=null;
  if((_expression_.indexOf(
#{)!=-1)(
_expression_.indexOf(#{)_expression_.indexOf(
'}'))){   value=getFacesContext().getApplication
().createValueBinding(_expression_).getValue(
getFacesContext()); }else
{  value=_expression_; } 
returnvalue; }Declare an input hidden field.to
 use it on the page.
h:inputHidden id=hiddenParam value=#{yourBackingBean.abc
}/Now you can use it even in js..
var myParam = document.getElementById(
'form1:hiddenParam').value;Regards,Merthttp://www.jroller.com/page/mert
On 10/12/06, ying lcs [EMAIL PROTECTED] wrote:
Is it possible to change the myfaces application URL so that it doesnot use '*.jsf' in the URL?And is it possible to pass in an argument(in my example (abc = 1) in the myface URL ?
http://localhost:8080/myfaceapplication.jsf?abc=1If yes, how can myface application get this value?Thank you.


Re: f:verbatim bug?

2006-09-16 Thread Mert Çalışkan
facelets will put an end to all these..
and check out the HtmlPanel for a workaround to blend html and jsf tags.
jsf-comp

Regards,

Mert.
On 9/16/06, Behrang Saeedzadeh [EMAIL PROTECTED] wrote:
 One more thing.LOL! I just thought that this is Steve Jobs introducing new Apple products :))
 use facelets instead of JSP ;)Looks like it is inevitable for us to use Facelts as it should solvemost of our problems like a charm. However we still cannot embrace itdue to some constraints :(
Cheers,Behi--We can only see a short distance ahead,but we can see plenty therethat needs to be done. - Alan TuringScience is a differential equation. Religion
is a boundary condition - Alan TuringBehrang Saeedzadehhttp://www.jroller.com/page/behrangsahttp://my.opera.com/behrangsa



Re: define another ResourceHandler

2006-08-18 Thread Mert Çalışkan
the head tag should be placed inside f:view to make it work. But i think thats not a nice solution.Mert..
On 8/18/06, Cagatay Civici [EMAIL PROTECTED] wrote:

Hi Rogerio,I dont think importing at head is possible with the phaselistener approach.
Cagatay

On 8/18/06, Rogerio Pereira  [EMAIL PROTECTED]
 wrote: 

Cagatay pointed the Mert solution for me, but how can i use this to generated the css/js import only at html head? 
2006/8/17, Rogerio Pereira  [EMAIL PROTECTED]:



Hi guys!Is there another context parameter to especify a alternative ResourceHandler? With MyFacesResourceHandler i'm getting this error:java.lang.IllegalArgumentException

: expected a myfaces custom component class in package org.apache.myfaces.customat org.apache.myfaces.renderkit.html.util.MyFacesResourceHandler.validateCustomComponent(MyFacesResourceHandler.java:75)

at org.apache.myfaces.renderkit.html.util.MyFacesResourceHandler.init(MyFacesResourceHandler.java:46)at org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition

(StreamingAddResource.java:391)at br.eti.faces.morefaces.dropablecontainer.HtmlDropableContainerRenderer.encodeJavascriptAtHeader(HtmlDropableContainerRenderer.java:170)at br.eti.faces.morefaces.dropablecontainer.HtmlDropableContainerRenderer.encodeBegin

(HtmlDropableContainerRenderer.java:75)at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild

(RendererUtils.java:434)at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:216)at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.encodeEnd

(HtmlGridRendererBase.java:98)at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java
:242)

at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive

(ComponentSupport.java:239)at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580)

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.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter

(BaseXMLFilter.java:65)at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:226)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java

:202)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:181)

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:869)at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)


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(Unknown Source)
-- Yours truly (Atenciosamente), Rogério (_rogerio_) 

-- Yours truly (Atenciosamente),Rogério (_rogerio_) 


Re: How do you test JSF pages?

2006-07-28 Thread Mert Çalışkan
I don't agree with that.
Without the shale-test framework howa developer cantest the decode-processValidations-updateModel phases without the container?
Shale-test framework became a vital tool for unit testing jsf stuff.

and for the load testing there is a cool tool called openSTA. It has nice features like jMeter..

Mert..
On 7/28/06, Rafael Nami [EMAIL PROTECTED] wrote:


If you're doing load and stress tests, JMeter and Badboy is a good combo.
Selenium is a very good tool to automatize functional tests, but this is something that Badboy do as well (have DWR/Ajax limitations, so sometimes is better go with Selenium).
But if you need unit and integration tests, you don't NEED the shale test framework - JSF itself is very testable, because of it's POJO nature and IoC capabilities.

Hope I could help
Best Regards

Rafael Mauricio Nami

2006/7/28, Dudu [EMAIL PROTECTED]: 

I'm not a specialist, but I have tested with Shale Test Framework and mock objects

On 7/28/06, Remo Liechti  [EMAIL PROTECTED]
 wrote:

Hi guysWe have a JSF page built up with Spring and webflow. There are also some java applets in it. 
How do you test your jsf pages?The test should do: login-test somepages-logout-give us the test results in a human readable format.It should be possible to test the webflows, to test the interactivity 
between applets and webflows(if you click on an object in the applet, awebflow is started in another frame for example) etc.Do you know such test applications?Thanks for your feedback,Remo
This message may contain legally privileged or confidential information and is therefore addressed to the named persons only. The recipient should inform the sender and delete this message, if he/she is not named as addressee. 
The sender disclaims any and all liability for the integrity and punctuality of this message. The sender has activated an automatic virus scanning, but does not guarantee the virus free transmission of this message.


-- --DuduGoogleTalk: eduardopichler[at]gmail[dot]comskype:eduardopichler 


Re: dataTable with dropdowns

2006-07-17 Thread Mert Çalışkan
EasySI component can be used to populateSelectItem objects from types like Collection, Map and etc. 

http://www.jroller.com/page/mert?entry=easysi_to_ease_the_pain
Regards,
Mert

On 7/14/06, Cosma Colanicchia [EMAIL PROTECTED] wrote:
I think that the row object has to return a List or an array ofjavax.faces.model.SelectItem objects, then your view can point it
using a selectItems component nested inside the selectOneMenu.Anyway, me neither like it.. the list usually comes from the modellayer, thus it cannot depends on view layer classes like SelectItem.
This kind of dependency is likely to cause problems. Has anyone founda better way to do this?Cosma2006/7/14, Jesse Alexander (KSFD 121) [EMAIL PROTECTED]
: the only drawback is: the row-object, for my gusto.., should be a pure modell object. Returning UISelectItems from one attribute would mean the modell object has a dependency on the UI-framework.
 regards Alexander  -Original Message-  From: Geoff Longo [mailto:[EMAIL PROTECTED]]  Sent: Friday, July 14, 2006 2:46 PM
  To: MyFaces Discussion  Subject: Re: dataTable with dropdowns   Thanks for the reply.The solution is so obvious, yet for some reason  I failed to see it.
   On 7/14/06, Jesse Alexander (KSFD 121)  [EMAIL PROTECTED] wrote:   you would need a row-object that can return a UISelectItems
  object. Then   you can add the dropdown-component into the column and point to the   attribute   delivering the select-items hth
   Alexander  -Original Message-From: Geoff Longo [mailto:[EMAIL PROTECTED]]Sent: Friday, July 14, 2006 5:09 AM
To: MyFaces DiscussionSubject: dataTable with dropdowns   I was wondering what the best way would be to create a  dataTable that
has a column that includes a dropdown, but the dropdown  choices may bedifferent in each row.Any ideas?   Thanks,
Geoff  


Re: Way to disable all child elements?

2006-07-02 Thread Mert Çalışkan
You can use HtmlPanel v1.1b. It has disabled, readonly and rendered attributes.

Regards,

Mert
http://www.jroller.com/page/mert
On 7/1/06, Matt Hughes [EMAIL PROTECTED] wrote:
Say you have a large form with 50 some input elements on it.Based on asimple boolean flag in your backing bean, you want to disable all ofthose fields.Is there any way to disable them all *other than* putting
disabled=#{backingBean.disabled} onto each and every element?I was thinking something along the lines ofh:form disabled=#{backingBean.disabled}100s of elements/h:form
which would disable all the children of that form.So far as I can tell there is no easy way to do this in your backingbean, as setDisabled()/isDisabled() are *not* methods on UIInput, butare on every child of UIInput.I don't really want to do a 'instanceof'
for every child of UIInput, and then cast to call setDisabled().Any ideas?


Re: InputDate Validation ?

2006-06-26 Thread Mert Çalışkan
I did a similiar thing for UIInput components before. With _javascript_ calls the userwas only capable of inputting numeric characters. 
You can use a _javascript_ like that, but you should also check for the keyCode for . hence the code only checks for 0-9 numeric inputs.

http://www.jroller.com/page/mert?entry=disabling_non_numeric_character_input
Cagatay will you add scripting stuff like that to the client-side validation of myfaces?
What's the plan?

Regards,

Mert

On 6/26/06, Cagatay Civici [EMAIL PROTECTED] wrote:

Hi,This is because converter takes place before the validators.Maybe you could try some _javascript_ tricks to disable user from submitting invalid data?
Cagatay

On 6/26/06, José Luis / Dpto Informatica [EMAIL PROTECTED]
 wrote: 




Hi,

Is there any way to validate what the user inputs in the InputDate control ?
If a user input a character in the day field then I get the next error :

pre
java.lang.NumberFormatException
: For input string: A java.lang.NumberFormatException.forInputString

(NumberFormatException.java:48) 

java.lang.Integer.parseInt(Integer.java:447)

 java.lang.Integer.parseInt(Integer.java:497) org.apache.myfaces.custom.date.HtmlInputDate$UserData.parse

(HtmlInputDate.java:208) org.apache.myfaces.custom.date.HtmlDateRenderer.getConvertedValue

(HtmlDateRenderer.java:277) javax.faces.component.UIInput.getConvertedValue

(UIInput.java:289) javax.faces.component.UIInput.validate(UIInput.java:265)
 javax.faces.component.UIInput.processValidators(UIInput.java:144)

 javax.faces.component.UIForm.processValidators(UIForm.java:68)
 javax.faces.component.UIComponentBase.processValidators

(UIComponentBase.java:417) javax.faces.component.UIViewRoot.processValidators

(UIViewRoot.java:142) org.apache.myfaces.lifecycle.LifecycleImpl.processValidations

(LifecycleImpl.java:240) org.apache.myfaces.lifecycle.LifecycleImpl.execute

(LifecycleImpl.java:76) 

javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)

 org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)

 org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
/pre

I've tried writing a validator method in mi backing bean but before I could read the new value the error has already been 
tigered.

Thank you very much in advance.




Re: Data loading

2006-06-23 Thread Mert Çalışkan
jsf+spring+hibernate

Dealing with database with hibernate by the help of spring is the best approach I think. 
You might look into these topics..

Regards,

Mert..

On 6/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

I should load a dataTable component.The property name is corporate.members.This list must be created with database datas.
My idea is write a fetchMembers bean method.The categoryId is an face page parametermembers.faces?categoryId=123How must I resolve this parameter in then bean method?private List fetchMembers() {
 How to do?  Resolve the categoryId paramter query datas }Are are there any more elegant solutions?


Re: Something Simple

2006-06-22 Thread Mert Çalışkan
To blend html and jsf tags without any rendering problems,

http://sourceforge.net/project/showfiles.php?group_id=137466package_id=192768

Regards,

Mert
On 6/22/06, L Frohman [EMAIL PROTECTED] wrote:



Take a look at

http://jsftutorials.net/htmLib/


for a simple method of creating various html tags using jsf.

Lance



De: CD [mailto:[EMAIL PROTECTED]] Envoyé: mercredi 21 juin 2006 22:41
À: MyFaces DiscussionObjet: Re: Something Simple

Troy,

Another thought is to use components like panelGrids and whatnot that give you such an ability by virtue of what they do and how they do it. Keep in mind that I'm not claiming a silver bullet to all scenarios. I will say that I've seen/read/been told that avoiding html tags is generally a best practice approach. I do like the discussion though. Anyone else want to chime in and discuss this matter further? 


Regards,
C. Dillon
On 6/21/06, Julian Ray [EMAIL PROTECTED]
 wrote: 
If you are using tomahawx then t:htmlTag value=br / will work. Otherwiseuse f:verbatimbr//f:verbatim 
-Original Message-From: Troy Bull [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 21, 2006 4:33 PM
To: MyFaces DiscussionSubject: Re: Something Simple Ok, in the vein of avoiding HTML all together how do i do a /BR withouthtml?ThankstroyCD said the following on 6/21/2006 2:17 PM:
 I also would recommend the stylesheet approach rather than the h2.In  fact, avoiding HTML tags altogether would be in your best interest. On 6/21/06, *Clement, James* 
[EMAIL PROTECTED]  mailto:
[EMAIL PROTECTED] wrote: af:outputText styleClass=my-own-h2-from-my-css value=Welcome #{authedUser.firstName }/
 *From:* CD [mailto:[EMAIL PROTECTED] mailto:
 [EMAIL PROTECTED]] *Sent:* Wednesday, June 21, 2006 3:10 PM *To:* MyFaces Discussion *Subject:* Re: Something Simple f:verbatim h2 
 /f:verbatim af:outputText value=Welcome #{authedUser.firstName}/ f:verbatim /h2 /f:verbatim 
 On 6/21/06, *Troy Bull* [EMAIL PROTECTED] mailto:
[EMAIL PROTECTED] wrote: Greetings: I have an attribute in a backing bean and I want to display it in a jsp inline.I tried to use OutputText and it doesn't seem to work 
 correctly. Here is what I want to do: f:verbatim h2Welcome #{authedUser.firstName}/h2 /f:verbatim 
 This doesn't work.So I tried f:verbatim h2Welcome af:outputText value=#{authedUser.firstName}
binding=#{backing_mainMenu.outputText1}id=outputText1//h2 /f:verbatim This doesnt work either.The first one prints out the 
 #{authedUs..., the second one prints out the firstName but outside the h2 tag. Thanks troy



Re: System.out.println(

2006-06-21 Thread Mert Çalışkan
System.out programming is a sin...On 6/21/06, Dennis Byrne [EMAIL PROTECTED] wrote:
Matze just got it.That guy is some programmer ;)Dennis Byrne-Original Message-From: Cagatay Civici [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 21, 2006 01:31 PM
To: 'MyFaces Discussion'Subject: Re: System.out.println(rendering fisheye) !?!?Do you think it's worth opening a JIRA? If so, I had a patch fixing thistough bug:)
CagatayOn 6/21/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: no! :) On 6/21/06, octoberdan 
[EMAIL PROTECTED] wrote:   Line 88 of  org.apache.myfaces.custom.fisheye.HtmlFishEyeNavigationMenuRenderer   System.out.println(rendering fisheye);
   Should that be there?  --  View this message in context: 
http://www.nabble.com/System.out.println%28%22rendering-fisheye%22%29-%21-%21--t1824085.html#a4974838  Sent from the MyFaces - Users forum at Nabble.com. 
  -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten blog: http://jroller.com/page/mwessendorf
 mail: mwessendorf-at-gmail-dot-com


Re: JSF Bundles Problem

2006-06-09 Thread Mert Çalışkan
Do you have a character encoding filter to set the character encoding of request and repsonse to UTF-8.
you can use the one in spring (org.springframework.web.filter.CharacterEncodingFilter) , or implement one of your own..

Regards,

Mert.
On 6/9/06, Hazem Saleh [EMAIL PROTECTED] wrote:


I have a question about JSF bundles. I want to use f:loadBundle tag to load the Arabic language but it displays strange characters in the browser. Although 
1. I had converted the bundle file to (UTF-8) instead of (ISO).
2. I've also changed the TomCat catalina.bat to include -Dfile.encoding=UTF-8 when starting Tomcat.3. % @ page language=java pageEncoding=utf8 contentType=text/html; charset=UTF-8 % setted the jsp page encoding to UTF-8. 

Have I have to do anything else? or I will have to make my own loadBundle tag library to convert ISO to UTF-8.
Thanks very much


Re: Websphere 6

2006-06-09 Thread Mert Çalışkan
You can find detailed info here..

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/crun_classload.html


and for the error...
everything is ok in web.xml file for FacesServlet, definition  mapping?

Regards,

Mert
On 6/9/06, Gregg Bolinger [EMAIL PROTECTED] wrote:
I think I am getting somewhere. I am now getting the following error message when trying to access my application.Error 404: SRVE0201E: Servlet [javax.faces.webapp.FacesServlet]: not a servlet classAny ideas?
Thanks.On 6/9/06, Gregg Bolinger 
[EMAIL PROTECTED] wrote:
Ok, I have done as you described. I set the war to module
and set it as PARENT_LAST. And I am having the same issues.
I am going to bounce and server and see if it solves the problem

On 6/9/06, Gregg Bolinger [EMAIL PROTECTED] wrote:


At the moment? I have none. HA. This is my first
experience with a full fledged bonafied app server. I typically
only have to deal with containers like Tomcat. If you had a link
with information on how to adjust the classloader in the EAR
application file, that would be helpful. Until then, I'll be
pinging google for it.
Thanks. Much appreciated.On 6/8/06, Mert Çalışkan 


[EMAIL PROTECTED] wrote:
If you can determine deployment properties, if you have the rights,
you can specify classloader policy for ear to application and war to module with parent last modes.
when you put all the jars under the web-inf lib of your war, the problem shouldn't arise.
Whats your classloader adjustments at the moment...

Regards,

Mert
On 6/9/06, Gregg Bolinger [EMAIL PROTECTED]
 wrote:
Um, can you elaborate?Thanks.On 6/8/06, Mert Çalışkan 




[EMAIL PROTECTED] wrote:
even over the classloader mode and policy? 
if you can adjust them for the ear  war you can solve the problem.

Regards,

MertOn 6/9/06, Gregg Bolinger 





[EMAIL PROTECTED] wrote:
I know all the issues surrounding running MyFaces in Websphere
6. I searched this mailing list and found plenty of useful
tips. However, I am having problems getting any of them to
work. If I remove jsf-api.jar and ws-jsf.jar then not only does
my app not work, but the server console app stops working.What
I really would like is a solution that doesn't involve doing anything
with the websphere install, if possible. I know, unlikely. The
thing is that our app will be installed on a Websphere server we have
no control over. Is this something that is possible?
Thanks.











Re: Multiple frames apps with JSF?

2006-06-08 Thread Mert Çalışkan
Iam using frameset (left+right) in one of my apps. It uses webgalileo tree on the left and there is a detailed page on the right.Passing parameters provided by session beans and h:inputHiddencomponents..

out of the jsf scope.. you might bump into some problems with a drop down menu on the top frame. It doesn't overlap to the bottom frame. You can overcome such a problem with an applet menu.
Regards,

Mert
On 6/8/06, Cosma Colanicchia [EMAIL PROTECTED] wrote:
I know, but we have some session-related problems that we solved inpast using frames.. maybe there are other solutions, but for now
completely losing frames support its a bit dangerous for us.The adf solution seems to work. I'll explore what happens if thesource frame has fields and validations..2006/6/8, Werner Punz 
[EMAIL PROTECTED]: Cosma Colanicchia schrieb:  I don't know Tiles very well (I'm using ADF Faces+Facelets).   Anyway, it sounds like you aren't talking about real frames using
  tiles (the whole page is always refreshed). I'm looking for a way to  use HTML framesets.   I've just noticed that the af:form has a targetFrame attribute,
  maybe it is exactly what I was looking for..   Thanks Fintan  Cosma   No real standard way in jsf itself, and to my knowledge nothin im
 Tomahawk the adf control might be your best choice. But I would advice you not to use frames, you open a can of worms there, there is a reason why frames nowadays are considered to be an anti pattern in html design and most framish things nowadays are achieved by
 templating mechanisms and div scrollers.


Re: Multiple frames apps with JSF?

2006-06-08 Thread Mert Çalışkan
yes with custom jscript..

On 6/8/06, Cosma Colanicchia [EMAIL PROTECTED] wrote:

You set the session parameter in left frame, and refresh the rightframe? How, some custom _javascript_? With ADF targetFrame the approach
could be different, it seems that request parameters are allowed topass trought..We already faced the drop-down problem with frames, thank you :-)Cosma2006/6/8, Mert Çalışkan 
[EMAIL PROTECTED]: I am using frameset (left+right) in one of my apps. It uses webgalileo tree on the left and there is a detailed page on the right.Passing parameters provided by session beans and h:inputHidden components..
 out of the jsf scope.. you might bump into some problems with a drop down menu on the top frame. It doesn't overlap to the bottom frame. You can overcome such a problem with an applet menu.
 Regards, Mert On 6/8/06, Cosma Colanicchia [EMAIL PROTECTED] wrote:  I know, but we have some session-related problems that we solved in
  past using frames.. maybe there are other solutions, but for now  completely losing frames support its a bit dangerous for us.   The adf solution seems to work. I'll explore what happens if the
  source frame has fields and validations.. 2006/6/8, Werner Punz  [EMAIL PROTECTED]:   Cosma Colanicchia schrieb:
I don't know Tiles very well (I'm using ADF Faces+Facelets).   Anyway, it sounds like you aren't talking about real frames usingtiles (the whole page is always refreshed). I'm looking for a way to
use HTML framesets.   I've just noticed that the af:form has a targetFrame attribute,maybe it is exactly what I was looking for..
   Thanks FintanCosma No real standard way in jsf itself, and to my knowledge nothin im
   Tomahawk the adf control might be your best choice.   But I would advice you not to use frames, you open a can of worms there,   there is a reason why frames nowadays are considered to be an anti
   pattern in html design and most framish things nowadays are achieved by   templating mechanisms and div scrollers. 



Re: Websphere 6

2006-06-08 Thread Mert Çalışkan
even over the classloader mode and policy? 
if you can adjust them for the ear  war you can solve the problem.

Regards,

MertOn 6/9/06, Gregg Bolinger [EMAIL PROTECTED] wrote:
I know all the issues surrounding running MyFaces in Websphere
6. I searched this mailing list and found plenty of useful
tips. However, I am having problems getting any of them to
work. If I remove jsf-api.jar and ws-jsf.jar then not only does
my app not work, but the server console app stops working.What
I really would like is a solution that doesn't involve doing anything
with the websphere install, if possible. I know, unlikely. The
thing is that our app will be installed on a Websphere server we have
no control over. Is this something that is possible?
Thanks.




Re: Websphere 6

2006-06-08 Thread Mert Çalışkan
If you can determine deployment properties, if you have the rights,
you can specify classloader policy for ear to application and war to module with parent last modes.
when you put all the jars under the web-inf lib of your war, the problem shouldn't arise.
Whats your classloader adjustments at the moment...

Regards,

Mert
On 6/9/06, Gregg Bolinger [EMAIL PROTECTED] wrote:
Um, can you elaborate?Thanks.On 6/8/06, Mert Çalışkan 
[EMAIL PROTECTED] wrote:
even over the classloader mode and policy? 
if you can adjust them for the ear  war you can solve the problem.

Regards,

MertOn 6/9/06, Gregg Bolinger 

[EMAIL PROTECTED] wrote:
I know all the issues surrounding running MyFaces in Websphere
6. I searched this mailing list and found plenty of useful
tips. However, I am having problems getting any of them to
work. If I remove jsf-api.jar and ws-jsf.jar then not only does
my app not work, but the server console app stops working.What
I really would like is a solution that doesn't involve doing anything
with the websphere install, if possible. I know, unlikely. The
thing is that our app will be installed on a Websphere server we have
no control over. Is this something that is possible?
Thanks.







Re: Load Testing JSF?

2006-06-06 Thread Mert Çalışkan
You can check out OpenSTA. It records the usage of a web app. and then you can ramp up the virtual users for the load test.

Here are the first things that came up to my mind..
It has a scripting language. If you want to read username-password for ex. from a file, you have to do some scripting.
It has nice graphical outputs.
It can do https..
Both the openSTA and jMeter doesn't support the simulation of fileupload.

Regards,

Mert


On 6/6/06, Dennis Byrne [EMAIL PROTECTED] wrote:
What part are you having trouble with? JMeter or JSF ;)I would suggest using tcpmon to sniff the request parameters off the wire.You can obtain this from the apache axis project.Then take the request parameters and plug them in to JMeter.You'll also want to configure JMeter for POST - this seems to have troubled me several times before.
Dennis Byrne-Original Message-From: Yee CN [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 6, 2006 10:49 AMTo: ''MyFaces Discussion''
Subject: Load Testing JSF?Hi,I am trying out jMeter with JSF - but not having much success so far. Iwould appreciate if anybody could share your experience regarding load
testing JSF applications so I don't have sweet blood to reinvent the wheel.I promise I will compile a Wiki on this.Many thanks in advance.Regards,
Yee


Re: Output an image

2006-06-02 Thread Mert Çalışkan
favor phaselisteners over servlets..

http://www.nabble.com/Render-an-Image-t1395334.html#a3811978Regards,
Mert
On 6/2/06, Mads Henderson [EMAIL PROTECTED] wrote:

I think you need to create a servlet that outputs the image. You can then use the servlet url in you h:graphicimage tagHope that helpsMads
On 6/1/06, Ondrej Svetlik [EMAIL PROTECTED]
 wrote: 
Hello all,I have image data in the database and want to simply send them out withpropper mime type. Is there a way to do it using JSF?
Best regardsOndrej Svetlik


Re: Access a Set with JSF-EL?

2006-05-31 Thread Mert Çalışkan
A Property Resolver like this can solve the problem..

http://www.jroller.com/page/mert?entry=settolistpropresolver_for_jsf_el

Regards,

Mert 
On 5/31/06, Michael Heinen [EMAIL PROTECTED]
 wrote: 
Thanks Steffen.I know that Maps are working and I use them a lot.Now I use also a Map with a dummy value for this issue. 
Michael-Original Message-From: Steffen Hankiewicz [mailto:[EMAIL PROTECTED]
]Sent: Dienstag, 30. Mai 2006 21:33To: MyFaces Discussion Subject: Re: Access a Set with JSF-EL?Hi Michael, This results in a javax.faces.el.PropertyNotFoundException. Bean: java.util.HashSet
, property: docId4711 I assume that I cannot access Sets with EL that way. I got the same results so far. One solution could be to transform yourdata into a HashMap instead of a HashSet. It seams to work well.
Does this help you?Buy,Steffen Hankiewicz


Re: Portuguese

2006-05-31 Thread Mert Çalışkan
Your resource bundles should also be converted to UTF-8. Here is a blogpost about implementing a Custom Filter for character encoding and an ant target for compiling resource bundles..

http://www.jroller.com/page/mert?entry=utf_8_encoding_with_jsf

Regards,

Mert
On 5/31/06, Rogerio Pereira [EMAIL PROTECTED] wrote:

use UTF-8 as encoding
2006/5/31, Vladimir Coutinho [EMAIL PROTECTED]:


I'm having problems whit jsf. My language is portuguese. When use some outputText like Exclusão the jsf sends to browserExclus#227;o. No problem if is part of the html, but when text like that are in a _javascript_ message (like alert()), it apears to the user Exclus#227;o. How to solve it? 
I'm using MyFaces Core 1.1.3,MyFaces Tomahawk 1.1.2.



Server Information

Tomcat Version
JVM Version
JVM Vendor
OS Name
OS Version
OS Architecture

Apache Tomcat/5.5.12
1.5.0_05-b05
Sun Microsystems Inc.
Windows 2000
5.0
x86
-- Vladimir M Coutinho 

-- Yours truly (Atenciosamente),Rogério 


Re: How to redirect to an error page when JSF page failed

2006-05-29 Thread Mert Çalışkan
This could be a solution for you.

http://www.jroller.com/page/mert?entry=handling_errors_with_an_errror

Regards,

Mert

On 5/26/06, Anthony Hong [EMAIL PROTECTED] 
 wrote: 
In jsp with servlet, I define error page configuration in web.xml toredirect to an error page when error occured. 
error-page exception-typejava.lang.Exception/exception-type location/errorpages/error500.jsp/location /error-pageBut in JSF page, it doesn't work. How should I configurate? 
--Anthony Hong


Re: Websphere 6 tld not found [solved]

2006-05-29 Thread Mert Çalışkan
We had a similiar problem with a JSF Webapp. The webapp is not
myfaces-enabled but the reason of your problem could be same as ours.
The main reason of our problem is the classloader selections of
WebSphere. We are using application classloader-policy for ear and
module classloader-policy for war with parent last classloading mode.
The J2EE spec says, locate the tld files under WEB-INF/tlds folder or
the related jars under WEB-INF/lib folder. I think tomahawk.jar is not
loaded with the classloader of your war. If you are using a shared
library (contains tomahawk.jar), that could also be the other reason.

Hope this helps.

Mert
On 5/29/06, Tanikonda [EMAIL PROTECTED] wrote:
HI,I am using Tree Table componenet of Tomhawk.I am getting following errorUnable to locate tag library for uri http://myfaces.apache.org/tomahawk inWebsphere6 .
Any Ideas please. Same thing working fine on TOMCAT. Do you have anyinstallation guide for configuring tomhawk on Websphere6--View this message in context: 
http://www.nabble.com/Websphere+6+tld+not+found-t1663507.html#a4615153Sent from the MyFaces - Users forum at Nabble.com.


Re: Obtaining reference to lifecycle

2006-05-24 Thread Mert Çalışkan
Use facesTrace.. 

It provides detailed information about app. lifecycle.

Regards,

Mert
On 5/24/06, James Richards [EMAIL PROTECTED] wrote:










Please disregard as I found what I was looking for


-Original Message-
From: James Richards [mailto:[EMAIL PROTECTED]]
Sent: Wed 5/24/2006 12:34 PM
To: users@myfaces.apache.org
Subject: Obtaining reference to lifecycle


Hello,

I would like to attach a PhaseListener to the MyFaces processing so
that I can watch the phases in action. How does one obtain a
reference to the Lifecycle?

Thanks for any help,

James









Re: Validation Support

2006-05-15 Thread Mert Çalışkan
How about clientvalidators at jsf-comp?

https://sourceforge.net/project/showfiles.php?group_id=137466

Regards,

Mert
On 5/15/06, Rodrigo Barreiros [EMAIL PROTECTED] wrote:
Hi,I need use client-side validation in my application. I
am using Shale Validator (shale-core-1.0.2) with Myfaces 1.1.1. The
validation works fine, but messages appears encoded in wrong way. For
example, for message:
errors.required={0} é um campo obrigatório.Appears: Nome #233; um campo obrigat#243;rio. in alert window.The same happens using corejsf-validator tag.Any suggests?

Thanks, Rodrigo




Re: Validation Support

2006-05-15 Thread Mert Çalışkan
yes with regular expressions..

Regards,

MertOn 5/15/06, Rodrigo Barreiros [EMAIL PROTECTED] wrote:
Does it support date, url and email validations?On 5/15/06, Mert Çalışkan 
[EMAIL PROTECTED] wrote:
How about clientvalidators at jsf-comp?

https://sourceforge.net/project/showfiles.php?group_id=137466

Regards,

Mert
On 5/15/06, Rodrigo Barreiros 

[EMAIL PROTECTED] wrote:
Hi,I need use client-side validation in my application. I
am using Shale Validator (shale-core-1.0.2) with Myfaces 1.1.1. The
validation works fine, but messages appears encoded in wrong way. For
example, for message:
errors.required={0} é um campo obrigatório.Appears: Nome #233; um campo obrigat#243;rio. in alert window.The same happens using corejsf-validator tag.Any suggests?



Thanks, Rodrigo







Re: Validation Support

2006-05-15 Thread Mert Çalışkan
Here is a document.

http://jsf-comp.sourceforge.net/components/clientvalidators/index.html

And you can find examples in Example Web Application.

Regards,

Mert
On 5/15/06, Rodrigo Barreiros [EMAIL PROTECTED] wrote:
Mert, do you have examples?On 5/15/06, Mert Çalışkan 
[EMAIL PROTECTED] wrote:
yes with regular expressions..

Regards,

MertOn 5/15/06, Rodrigo Barreiros 

[EMAIL PROTECTED] wrote:
Does it support date, url and email validations?On 5/15/06, Mert Çalışkan 


[EMAIL PROTECTED] wrote:
How about clientvalidators at jsf-comp?

https://sourceforge.net/project/showfiles.php?group_id=137466

Regards,

Mert
On 5/15/06, Rodrigo Barreiros 



[EMAIL PROTECTED] wrote:
Hi,I need use client-side validation in my application. I
am using Shale Validator (shale-core-1.0.2) with Myfaces 1.1.1. The
validation works fine, but messages appears encoded in wrong way. For
example, for message:
errors.required={0} é um campo obrigatório.Appears: Nome #233; um campo obrigat#243;rio. in alert window.The same happens using corejsf-validator tag.Any suggests?





Thanks, Rodrigo









Re: Use of Converters

2006-05-12 Thread Mert Çalışkan
We are using a converter to fetch the values fromlookup tables in a generic way. 
POJOs are implementing an interface like,


public ILookupObject {
 public Object getThis();
 public Long getId();
 public String getName();
}

and a converter is defined in faces-config.xml for all the classes implementing this interface.
While rendering selectable items, each lookup object -fetched calling getThis(), in which lookup objects return themselves- is given into Converter.getAsString(...) method. This method returns getClass().getName() +'_' + getId() as identifier value. 



And we're using it from jsf pages like,

h:selectOneMenu id=cmbCountries value=#{personelPageCode.personel.country }
 f:selectItems value=#{selectitems.personelPageCode.countries.name.this.toArray} /
/h:selectOneMenu

Only bu specifying an el, we can fill a combo box with values from dbase.
You can find detailed information at my teammate's blogpost.


Regards,

Mert
On 5/12/06, Julian Ray [EMAIL PROTECTED]
 wrote: 
Hi Matt,we use a similar system to look up values for business object by primary key 
from the database which is highly de-normalized. We use Hibernate and havedeveloped a base-class which we can either extend for unusual cases or usepassed table/pk name via tag attributes.It works well and as Hibernate caches everything there is little impact on 
the database :). One trick is to return different values from the PK lookupsuch as names/addresses etc.. which are in user-configurable through ourGUI. To do this we have default long short and medium formats 
available in the base class which can be interpreted based on the tablebeing accessed.We did find that a generic lookup-converter is less useful (from a GUIdeveloper perspective) as it tends to break the MVC model and lead to code 
changes in the JSP when the underlying data model changes so we now havecreated sub-classed converters for each table which is preferable.--View this message in context: 
http://www.nabble.com/Use-of-Converters-t1608471.html#a4360735Sent from the MyFaces - Users forum at Nabble.com
.


Re: DataTable -- How to align images in a cell?

2006-05-09 Thread Mert Çalışkan
What about f:attribute name=align value=center / for columns in h:datatable?
i've used it with images with no problem (for IE).
Regards,

Mert
On 5/9/06, Julian Ray [EMAIL PROTECTED] wrote:


I know this is a little off topic but I'm having problems trying to align images in columns in IE 6 and 7. Works great for Firfox, Opera etc. but I just can't get the $%## things to center in IE


td.center {
 text-align: center;
}

works for most browsers

img.center {
display: block;
margin-left: auto;
margin-right: auto;
}

also works on everything but IE 

If anyone has figured this out, please let me know

Thanks



Re: f:param and commandButton

2006-05-09 Thread Mert Çalışkan
IBM RSA doesn't support it yet..lol :)))
1.5 has lots of nifty features and I agree about using it too.

Regards,

MertOn 5/9/06, Andrew Robinson [EMAIL PROTECTED] wrote:
Yep, sorry, I work exclusively on Tiger/Java5/JDK 1.5 (whatever youwant to call it). I use generics, enum's and the new for loop a lot.Good for me, maybe not so good for people who can't upgrade to it yet.Makes me wonder what percentage of people are still on 
1.4...On 5/9/06, Mike Kienenberger [EMAIL PROTECTED] wrote: On 5/9/06, Andrew Robinson [EMAIL PROTECTED]
 wrote:  I have released that tomahawk tag handler in component form at:   http://sourceforge.net/projects/jsf-comp/ 
  Download the tagHandlers release:  http://sourceforge.net/project/showfiles.php?group_id=137466package_id=168411release_id=368243
 Hey Andrew. I started using your handler about a week ago. One thing I noticed was that it seemed to have some unnecessary Java 1.5? code in it. I changed
 
for (ActionListener listener : source.getActionListeners()) {  to 
ActionListener actionListeners[] = source.getActionListeners();
for (int index = 0; index  actionListeners.length; ++index) {
ActionListener listener = actionListeners[index];  and it has been running great for me under Java 1.4.2.


Re: SelectOneRadio+title (tooltip)

2006-05-08 Thread Mert Çalışkan
f:selectItem doesn't have a title property. So I think you can't specify a title for each option.

Although it has a itemDescription property. 
javadoc says: 

Description of this option, for use in
development tools.
I've seen no examples for that even with development tools.

On 5/8/06, Lisaa [EMAIL PROTECTED] wrote:

Hi.,I have something like:t:selectOneRadiovalue=#{configuration.leasingartSelected}>valueChangeListener=#{configuration.leasingartValueChange}
 f:selectItem itemValue=Privat itemLabel=Privat /f:selectItem itemValue=Gewerblich itemLabel=Geschäftlich //t:selectOneRadio

I would like to place title (tooltip) for the rendered 2 radio buttons eachone with different texts (not setting title attribute common for bothbuttons).Lets say with equivalent HTML:Male:
input type=radio name=Sex value=male title=maleFemale:input type=radio name=Sex value=female title=female
How could I achieve that?Any help is highly appreciated.Thanks.--View this message in context: 

http://www.nabble.com/SelectOneRadio%2Btitle-%28tooltip%29-t1578182.html#a4284271Sent from the MyFaces - Users forum at 
Nabble.com.


Re: Transfering data between pages.

2006-05-04 Thread Mert Çalışkan
Yes same managed-bean Rogerio. 
I supposeyou were adding the results from the bean in popup page to the bean in main page.

Cheers,

Mert
On 5/4/06, Rogerio Pereira [EMAIL PROTECTED] wrote:





Use the same list for the main and popup page. Define it as a managed-bean with session scope. 

You mean use the same managed-bean in both pages?


After refreshing the main page you should see the address list within the main page. So no need to add operations, thx to managed-beans.

What u mean with add operations?
-- Yours truly (Atenciosamente),Rogério 


Re: outputLink and context

2006-05-04 Thread Mert Çalışkan
Don't specify / before hello.jsf. It'd be context relative with this.

Regards,

Mert

On 5/4/06, Alexander Panzhin [EMAIL PROTECTED] wrote:
How to make the outputLink be context relativeso that myh:outputLink value=/hello.jsf
 t:outputText value=hello//h:outputLinkwould point to http://localhost:8080/hello/hello.jsf and not
http://localhost:8080/hello.jsf--With best regards, Alexander Panzhin


Re: Transfering data between pages.

2006-05-04 Thread Mert Çalışkan
You should specify the list as a managed-bean and use the same managed bean in main and popup page.
Other UIComponents should be specified in two different backing-beans.

Regards,

Mert
On 5/4/06, Rogerio Pereira [EMAIL PROTECTED]
 wrote: 








Yes same managed-bean Rogerio. 
I supposeyou were adding the results from the bean in popup page to the bean in main page.
My problem is, i have 5 fields and 3 buttons on popup window and put this stuff in the same bean will make the things a little confuse and dificult to understand and manage later. 

-- Yours truly (Atenciosamente),Rogério 


Re: how to show param/value on URL and captuer them through backing bean

2006-05-03 Thread Mert Çalışkan
to capture them through backing bean...
http://www.jroller.com/page/mert?entry=how_to_pass_request_parameters
Regards,

Mert

On 5/2/06, Yasushi Okubo [EMAIL PROTECTED] wrote:
Hi, expertsI am using session bean, but some portions of applications have to showparam/value in URL field on browser and capture those pairs of
param/values through backing bean.Could someone advise me how to show param/value in URL ?If I move to a bean with request scope with statesaving on, then couldpairs of param/values automatically be shown on URL ?
Since I am using tiles, URL looks always the name of the tile defined intiles.xmlThanks,yasushi


Re: direct access to ArrayList elements by index possible?

2006-05-03 Thread Mert Çalışkan
yes it is possible..
On 5/3/06, Philippe Lamote [EMAIL PROTECTED] wrote:
Hi List,Does anyone know whether it is possible to directly access theelements of an instantiated ArrayList by their index?So if I would have in my backing bean:ArrayListString
list = new
ArrayListString()//
with e.g.elements from index [0] to [4] having precise semantics  beinginstantiated in the bean constructor-- is there a way to do, on a page, stuff like:h:inputText value=#{backingBean.list
[2]} /It would avoid having to create one dedicated proxy variable perindex and handling the synchronization between these two.Thanks for tips,Phil


Re: Popup New Window with CommandLink onclick attribute

2006-05-03 Thread Mert Çalışkan
Thanks Tim. 
I am glad to be of help.
I agree, a wiki entry would be good. 
btw TR also stands for Turkey :P

Cheers,

Mert
On 5/3/06, Romanowski, Tim [EMAIL PROTECTED] wrote:





Mert,
Excellent explanation, thanks for your patience! The 
extra code that I was looking for was code that would be in the originating 
page, but I think you've explained that sufficiently now. I've implemented 
this and it appears to be working well. Perhaps such an example belongs in 
the wiki?

Cheers,
Tim


From: Mert Çaliskan [mailto:
[EMAIL PROTECTED]] 
Sent: Wednesday, May 03, 2006 2:56 PM
To: MyFaces 
DiscussionSubject: Re: Popup New Window with CommandLink onclick 
attribute
Hey Tim,Actually that's all for passing parameters via URL 
between jsf pages. I commented your post below. Hope this 
helps.
On 5/3/06, Romanowski, 
Tim [EMAIL PROTECTED] 
 wrote:

  
  Thanks for 
  the link Mert. If you look at the page, it 
  seemsbe 
  missing 50% of the puzzle; it shows how to bind a variable in the target page, 
  but it does not state how to pass that variable from the originating 
  page
The subject of my blog is about passing parameters with the URL so i 
focus on the target page to get the determined parameter.Sorry if it became 
a little confusing for all. So here it is. :)The parameter should be 
passed via URL like /faces/myPage.jsp?myParam=blahBlah. You want to open a 
custom sized window. so rewrite the url with the parameters in your jscript. You 
can also use _expression_ languages with the jscript so no need to worry here to 
populate the url.

  
  --the 
  resolver function is resolving the binding of the current (i.e., the new 
  popped up window) page, but I need to use the value from the originating 
  page.I don't understand how one does so from the originating page 
  when you wish to create a popup.
param map is the key here. From the JSF Spec:param: an immutable map of the request 
parameters. So all the parameters specified in URL can be accessed through this 
map. Resolving an _expression_ like #{param.myParam} helps retrieve the 
value.

  
   I 
  would like to control the size of the popup, which appears only to be 
  available if I open the window via _javascript_. That requirement aside, 
  do you by any chance have a working example of a link opening a new window, 
  first passing a value from one page to the next? This is not nearly as 
  straightforward as I would expect.
Yes i've implemented this but all the code is also in the blogpost too. 
add a propertyadd getter/setter and resolver method.add a hidden 
field  bind the property to hidden fieldand use the passed value like 
getMyParam().thats all.

  
  The 
  website [1] below suggests using output link, but I'm not sure what they did 
  to make it work (i.e., they call target=_blank, but I don't see them 
  attempting to first bind a value as would be the case with a 
  commandLink). 
  
  [1] 
http://www.jroller.com/page/jsight?entry=still_not_so_sure_about
outputlink also renders a a tag for itself. So you can simulate 
a popup action like,  
 h:outputLink id=linkRoller value=# 
 href="" target="_blank" >http://www.jroller.com') 
   h:outputText 
id=popupText value=my popup 
page/h:outputText  
 /h:outputLinkwith window.open command you can 
specify your window size. Regards,Mert 

  
  
  
  From: Mert Çaliskan [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, May 03, 2006 12:32 PM
  To: MyFaces DiscussionSubject: Re: 
  Popup New Window with CommandLink onclick attribute
  
  
  to pass parameters between pages via url,http://www.jroller.com/page/mert?entry=how_to_pass_request_parameters 
  Regards, Mert..
  On 5/3/06, Romanowski, 
  Tim [EMAIL PROTECTED] wrote: 
  Thanks 
Matthias, the link you've listed does explain why I am notsetting a 
value before the onclick method is 
called.Unfortunately,although that explains why I cannot 
update a backing value via a bindingmethod before opening a new window, 
I still am at a loss as to how I can in fact open a new window that is 
passed the current value of mydatatable row.**Does anyone have 
an example where they generate a popup window andpass a value for use by 
the new window?I do not understand how a managed bean might 
be instantiated if I am submitting a form via_javascript_, as explained 
below.Ideally, I'd like to simply have acommandLink in my 
dataTable that I can use to open the new window, andbind a value before 
the page in that window is actually executed. I _have_ tried one 
thing that is similar a hack used for getting theapache display taglib 
to work with commandLinks: In addition tosurrounding my JSF datatable 
with a form tag, I've included in that formtag a standalone 
commandLink.I then call a _javascript_ method from 
thedatatable which sets the _link_hidden_ value of the form to the page 
I'dlike to open; I also set a dummy param value (I called it id) like 
so: h:form 

Re: Transfering data between pages.

2006-05-03 Thread Mert Çalışkan
Use the same list for the main and popup page. Define it as a managed-bean with session scope. 

Closing the popup and refreshing the main page could be done with _javascript_. But it is related with your main page design.
If you have frames _javascript_ will differ. Assuming one simple main and popup page (no frames) you should have a link like,

a href=""  window.close();Close Me/a

After refreshing the main page you should see the address list within the main page. 
So no need to add operations, thx to managed-beans.


Regards,

Mert
On 5/3/06, Rogerio Pereira [EMAIL PROTECTED] wrote:
Hi guys,I have a dataTable on a
page and below this page i have a link the opens a popup window where i
can fill a form with some values (eg: an address entry) and then i
click on Save button to add this data to dataTable ArrayList (with
addresses), i can do it many times i want before close the window.
Now my question is, how can i refresh the dataTable in the main page with my populated ArrayList.I tried this:  FormProcessoDadosBasicos formProcessoDadosBasicos = (FormProcessoDadosBasicos) 
facesContext.getApplication() .getVariableResolver().resolveVariable(facesContext, formProcessoDadosBasicos);  EnderecoSentenciado enderecoSentenciado = new EnderecoSentenciado();
  enderecoSentenciado.setLogradouro(descricao);if(formProcessoDadosBasicos.getEnderecos() == null)   formProcessoDadosBasicos.setEnderecos(new ArrayList());
System.out.println(formProcessoDadosBasicos.getEnderecos().size());  formProcessoDadosBasicos.getEnderecos().add(enderecoSentenciado);and then when i close the popup window:window.opener.document.forms

[0].submit(); window.close();and no effect.I have another issue, if i close the popup window and open again the ArrayList is empty.I'm using jars built form svn.
-- Yours truly (Atenciosamente),
Rogério




Re: Add Row With Component To Datatable

2006-05-02 Thread Mert Çalışkan
just put UIInput components whereever you want them.

For example,
 instead of 
 h:outputText value=#{rowVar.radical_value}/,
 use h:inputText id=text4 
value=#{rowVar.radical_value} /
If templatesCollection is a session-managed bean there would be no problem for inputting values.

Regards,

Mert.

On 5/2/06, James Ellis [EMAIL PROTECTED] wrote:
I want to have a datatable with two columns.The first column will alwaysbe text, but the second column will have some sort of form element (textbox,
textarea, dropdown box etc) populated dynamically.How do I populate thedatatable dynamically?I tried the code below but all I got was the name of the class of the formelement (since it's toString method must have been called):
(from JSF page)h:dataTable id=dynSourceTable columnClasses=label headerClass=labelvalue=#{dynSourceTemplateBean.templatesCollection} var=rowVar
border=0 h:column f:facet name=header f:verbatimLeft Hand Header/f:verbatim /f:facet h:outputText value=#{
rowVar.radical_name}/ /h:column h:column f:facet name=header f:verbatimRight Hand Header/f:verbatim
 /f:facet h:outputText value=#{rowVar.radical_value}/ /h:column/h:dataTable(from backing bean)private ArrayList templatesCollection = null;
public ArrayList getTemplatesCollection(){ System.out.println(Inside getTemplatesCollection); ArrayList tc = new ArrayList(); HashMap hm1 = new HashMap(); hm1.put
(new String(radical_name), new String(radical name1 )); UIInput image_url = new UIInput(); image_url.setValue(textbox value display text); hm1.put(new String(radical_value), image_url);
 HashMap hm2 = new HashMap(); hm2.put(new String(radical_name), new String(radical name2 )); UIInput image_url2 = new UIInput(); image_url2.setValue(textbox2 value display text222);
 hm2.put(new String(radical_value), image_url2); tc.add(hm1); tc.add(hm2); return tc;}Does anyone know how I could dynamically set the rows in the datatable with
form elements (not just text)?


Re: Add Row With Component To Datatable

2006-05-02 Thread Mert Çalışkan
All the UIInput components should be placed in the column and they
should be rendered upon some value. Rendered solution like the
julian's, would be practical.On 5/2/06, Julian Ray [EMAIL PROTECTED] wrote:
We have a similar issue where we create an HTML form on the fly with anumber of pre-defined response types such as input a number 0-n, input anumber 1-n, yes/no, yes/no/na etc. We do this by including a input controls
iwthin the column and using a rendered=#{...} from the backing bean totell tell the form which control to render for a particular question.TheJSp looks like:
t:dataTable renderedIfEmpty=falsecellpadding=2 cellspacing=1columnClasses=centerAlignCol,
leftAlignCol,inputColheaderClass=list-header
id=dataTable1rowClasses=list-row-even,list-row-odd styleClass=dataTablevalue=#{NewForm.questions}var=currentRow width=100%

h:column
h:outputTextvalue=#{currentRow['index'] + 1}/f:facet
name=headerh:outputText
value=Question//f:facet
/h:column
h:column
h:outputTextvalue=#{currentRow.bean['prompt']} escape=false/f:facet
name=headerh:outputText
value=escape=false//f:facet
/h:columnh:columncms:spinner
id=ipt1 mode=clientstyleClass=spinner minimum=1 maximum=999 size=3value=#{currentRow['value']} rendered=#{NewForm.renderOneOrMore
}/cms:spinner
id=ipt2 mode=clientstyleClass=spinner minimum=0 maximum=999 size=3value=#{currentRow['value']} rendered=#{NewForm.renderZeroOrMore
}/h:selectOneRadio
id=ipt3layout=lineDirection required=true value=#{currentRow['value']}rendered=#{NewForm.renderYesNoNA}f:selectItems
value=#{NewForm.selectionYesNoNA}//h:selectOneRadioh:selectOneRadio
id=ipt4layout=lineDirection required=true value=#{currentRow['value']}rendered=#{NewForm.renderYesNo}f:selectItems
value=#{NewForfm.selectionYesNo}//h:selectOneRadioh:message
for="">errorClass=errorMessage/h:message
for="">errorClass=errorMessage/h:message
for="">errorClass=errorMessage/h:message
for="">errorClass=errorMessage/f:facet
name=headerh:outputText
value=escape=false//f:facet/h:column-Original Message-From: James Ellis [mailto:
[EMAIL PROTECTED]]Sent: Tuesday, May 02, 2006 9:32 AMTo: users@myfaces.apache.orgSubject: Re: Add Row With Component To Datatable
But I don't know if the form element will be a textbox or a dropdown...so Ican't hardcode them into the page like that.I would think I'd need to addthem to the datatable through the backend only I can't seem to figure out
how to add a row (only a column).Does anyone know how I can specify(through the backend) that the datatable will have something like this:Column
1Column
2text blah blah textboxmore textdropdownagain more texttextareatext keeps going textboxtext blah blah radio box
Again to sum upa user selects from a dropdown which will fire aValueChangeListener which will determine which fields are displayed.Ican't hardcode the fields since I don't know what they'll be until the user
selects from the drop down box.From: Mert Çalýþkan [EMAIL PROTECTED]Reply-To: MyFaces Discussion 
users@myfaces.apache.orgTo: MyFaces Discussion users@myfaces.apache.orgSubject: Re: Add Row With Component To DatatableDate: Tue, 2 May 2006 13:07:03 +0300
just put UIInput components whereever you want them.For example,instead ofh:outputText value=#{rowVar.radical_value}/,useh:inputText id=text4 value=#{
rowVar.radical_value} / IftemplatesCollection is a session-managed bean there would be no problemfor inputting values.Regards,Mert.On 5/2/06, James Ellis 
[EMAIL PROTECTED] wrote:I want to have a datatable with two columns.The first column willalways be text, but the second column will have some sort of form
element (textbox, textarea, dropdown box etc) populated dynamically.How do I populate the datatable dynamically?I tried the code below but all I got was the name of the class of the
form element (since it's toString method must have been called):(from JSF page)h:dataTable id=dynSourceTable columnClasses=label headerClass=label
value=#{dynSourceTemplateBean.templatesCollection} var=rowVarborder=0h:columnf:facet name=header
f:verbatimLeft
Hand Header/f:verbatim/f:faceth:outputText value=#{rowVar.radical_name}//h:column
h:columnf:facet name=headerf:verbatimRight
Hand Header/f:verbatim/f:faceth:outputText value=#{rowVar.radical_value}//h:column
/h:dataTable(from backing bean)private ArrayList templatesCollection = null;public ArrayList getTemplatesCollection() {
System.out.println(Inside getTemplatesCollection);ArrayList tc = new ArrayList();HashMap hm1 = new HashMap();hm1.put(new String(radical_name), new String(radical name1
));UIInput image_url = new UIInput();image_url.setValue(textbox value display text);hm1.put(new String(radical_value), image_url);
HashMap hm2 = new HashMap();hm2.put(new String(radical_name), new String(radical name2 ));UIInput image_url2 = new UIInput();
image_url2.setValue(textbox2 value display text222);hm2.put(new String(radical_value), image_url2);tc.add(hm1);
tc.add(hm2);return tc;}Does anyone know how I could dynamically set the rows in the datatablewith 

JSFExcelCreator Sample Webapp.

2006-04-25 Thread Mert Çalışkan
I've gathered a small web application for demonstration of the JSFExcelCreator. You can find screenshots and links here.

Regards,

Mert.


Re: JSFExcelCreator Sample Webapp.

2006-04-25 Thread Mert Çalışkan
lol..we've got the influence, Cagatay.

any comments  suggestions are welcome..

Regards,

Mert.On 4/25/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
Looks great!btw. are all turkish jsf hackers interested in Barac ?:-)On 4/25/06, Mert Çalışkan [EMAIL PROTECTED] wrote: I've gathered a small web application for demonstration of the
 JSFExcelCreator. You can find screenshots and links here.Regards,Mert.--Matthias WessendorfAechterhoek 1848282 Emsdetten
http://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com


Re: Problems displaying error pages in jsf

2006-04-25 Thread Mert Çalışkan
Here is an aspect solution. A tricky way to extend FacesServlet..

http://jroller.com/page/cenkcivici?entry=p_during_the_past_two

Regards,

Mert.
On 4/25/06, Rhys Parry [EMAIL PROTECTED] wrote:
Please ignore I hit send by accident.i will send the entire message in a moment-Original Message-From: Rhys Parry [mailto:[EMAIL PROTECTED]]Sent: April 25, 2006 1:39 PM
To: MyFaces DiscussionSubject: Problems displaying error pages in jsfAll,Many many problems.First, what i wanted to do. . .I set up a filter in web.xml to filter requests based on security.
I
wrapped myfaces FacesServlet( as it is final ) because I wanted to trap
the error and email the admin once an error has occured with the stack
trace.Once I email I just wrap the exception in a ServletException and throw it.The code looks like the following;


JSFExcelCreator released at jsf-comp

2006-04-24 Thread Mert Çalışkan
JSFExcelCreator is an open-source project to output JSF Datatables in excel format. 
Every datatable, expect the ones with UIInput components, can be seen as an excel spreadsheet.

Project offers a generic solution for all tables and now it is released at sourceforge jsf-comp.
You can find the links and information about the project here.

Regards,

Mert.


Re: Char Encoding

2006-04-18 Thread Mert Çalışkan

You should also convert your application resource bundles to UTF-8.
Here is a blogpost contains necessary steps..

http://www.jroller.com/page/mert?entry=utf_8_encoding_with_jsf

Cheers,

Mert.
On 4/18/06, Cagatay Civici [EMAIL PROTECTED] wrote:

Hi,What about the filter mapping, are you sure the filter does it's job. Also you can do the same thing with a custom filter like;import java.io.IOException;import 
javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletException;import javax.servlet.ServletRequest;import javax.servlet.ServletResponse;
public class YourCharEncodingFilter implements Filter {  public void init(FilterConfig arg0) throws ServletException { } public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
 throws IOException, ServletException {  servletRequest.setCharacterEncoding(UTF-8); servletResponse.setCharacterEncoding(UTF-8); filterChain.doFilter
(servletRequest, servletResponse); } public void destroy() {  }}Regards,
Cagatay

On 4/18/06, Murat Hazer [EMAIL PROTECTED]
 wrote: 

Hi,I see this line(s) at the output console after each page render completed 17:16:09,796 DEBUG HtmlResponseWriterImpl:97 - No character encoding given, using default character encoding ISO-8859-1
i am using spring's CharacterEncodingFilter to solve this problem as below;filterfilter-nameencodingFilter/filter-namefilter-classorg.springframework.web.filter.CharacterEncodingFilter
/filter-classinit-paramparam-nameencoding/param-nameparam-valueUTF-8/param-value/init-paraminit-paramparam-nameforceEncoding/param-name
param-valuetrue/param-value/init-param/filtershould i do something different in order to change default char encoding to utf-8?
-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 
Blog URL: http://www.projedunyasi.orgYahoo Group: 
http://groups.yahoo.com/group/malatyafenlisesi/ 


Re: Re: [OT] Rotating Images via JSF or AJAX

2006-04-14 Thread Mert Çalışkan
Favor phaselisteners over servlets

to render the image

http://www.nabble.com/Render-an-Image-t1395334.html#a3811978 
(my friend's old post to the group maybe you already have it)

and to rotate it by spicing with java2d.

cheers,

Mert
On 4/14/06, James Reynolds [EMAIL PROTECTED] wrote:
Oops, I shouldn't have written 'rotation.'I simply mean changing thedisplayed image on the page without page submits, basically just like adbanners.Though your point is taken, I'll need to focus on getting the
image from the server.Thanks-Original Message-From: news [mailto:[EMAIL PROTECTED]] On Behalf Of Werner PunzSent: Friday, April 14, 2006 11:28 AM
To: users@myfaces.apache.orgSubject: Re: [OT] Rotating Images via JSF or AJAXJames Reynolds schrieb: I have an animated .gif that rotates images (like a slide show).I
 want to replace it with some kind of component that will do the samething. I'd like to have it pull the sources for the images from a database so that I can choose which images are displayed on the fly.
 Has anyone discovered a JSF or AJAX roadmap for this kind of thing?Nothing is there as component yet, however it is doable, if you arewilling to write it yourself.You have everything basically in place.
All you need is java2d for rotation and something which pulls the imagesfrom a server.You even can do that without jsf just by using a servlet for doing thework and then setting parametrized img tags onto that servlet.



Re: Render an Image

2006-04-05 Thread Mert Çalışkan
I think h:graphicImage should support byte[] binding as a value...

Mert
On 4/4/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
Udo, when you are *generating* you image, you may take a look atCagatay's blog ([1])[1] 
http://tinyurl.com/q7yff


Re: Tables colspan

2006-04-05 Thread Mert Çalışkan
or you can use jstl with jsf. It's the way we'd designed a page with custom table headers and custom columns (merged cells, rows etc etc.).
On 4/5/06, Werner Punz [EMAIL PROTECTED] wrote:
Hagay Avisar schrieb: Hi All, How can I simulate "colspan" behavior in JSF?
 What is the substitute tag? Can I use "panelGrid" to set up pages layout, And can I have some thing similar to "colspan" behavior? Thanks.There is no real colspan per se unfortunately
you have limited control via the row and colum styles.I usually if I really need colspan revert to the jsf-html lib.(which you can find somewhere linked on jsfcentral)


Re: Yahoo! User Interface Library

2006-04-04 Thread Mert Çalışkan
I'd integrated some rico components with jsf. But not the ajaxified ones. (accordion, the other panel features etc.). Working along nicely with the JSP too. Anyone has a requirement for such components? maybe pack them up as an open source project...

On 4/4/06, Martin Marinschek [EMAIL PROTECTED] wrote:
The problem James speaks of has been fixed in the latest release of prototype.What remains is a pollution of the namespace. Prototype defines
classes like 'Effects' or 'Event'. How big is the chance that anotherlibrary might do the same? Decide if that's a risk you want to take,for a framework, it's not a risk you should take.Now I discussed with the prototype guys to fix that, but the response
was not positive, so we decided to switch to dojo.regards,MartinOn 4/3/06, Dennis Byrne [EMAIL PROTECTED] wrote: we were happy with rico  prototype... :)
 You may want to check out James McParlane's blog before you bring prototype.js or any of it's derivatives into your application. 
http://blog.metawrap.com/blog/WhyIDontUseThePrototypejsJavaScriptLibrary.aspx Mert Dennis Byrne--http://www.irian.at
Your JSF powerhouse -JSF Consulting, Development andCourses in English and GermanProfessional Support for Apache MyFaces


Re: jscookmenu and navigation menu items

2006-04-03 Thread Mert Çalışkan
xml would be suitable for this.You can digest the xml file with commons-digester and get the menu info easily. 
In one of my previous projects we used db to persist menu info. Recursive functions didn't interfere our speed hence we had submenus with only one depth. And commiting menu changes on db directly changes the rendered menu on the screen andthat was idiotically cool :)

On 4/3/06, Murat Hazer [EMAIL PROTECTED] wrote:

Hi, i am using jscookmenu in my project, and i neither want to hard code navigation menu items into java classes nor JSF's. I want to carry to these navigation menu items to db or an xml file for easy manupilating. I thought that to do this i need to create a db row for each navigation menu item and also there should be a extra column in each row which points to the up navigation menu item. If i do this also i need to implement recursive funtions :( to build the menu by using these db rows. (this bean could be application or session scoped) 
 I wanna ask you that is this idea acceptable or there is any other proven pattern to do something like this?regards...
-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Blog URL: 
http://www.projedunyasi.org 


Re: Yahoo! User Interface Library

2006-04-03 Thread Mert Çalışkan
yet another _javascript_ framework..
we were happy with rico  prototype... :)

Actually it has some nifty features. 
In the mean time it made me wonder..Anyone using a _javascript_-enabled multi-language supported calendar component? (like the yahoo's default calendar)...
Mert
On 4/3/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
On 4/3/06, Jurgen Lust [EMAIL PROTECTED] wrote: There are some very nice components there, especially the drag and drop
 stuff and, indeed, the slider. The license is BSD however, that might be a problem...No, the BSD license is not a problem.


Re: disabling logs on myfaces

2006-03-30 Thread Mert Çalışkan
xmlfilecan be anywhere in your classpath. 

But you haveto choose between log4j api or sun's logging in jdk. 
log4j.jar should also be in the classpath with commons-logging.jar if you choose it.log4j.xml has usage precedence over the properties file. 

you can also give a VM argument for the location of your log4j.xml like,
-Dlog4j.configuration=file:///C:/log4j.xml

Cheers,


-Mert
http://www.jroller.com/page/mert

On 3/30/06, Eduardo Dudu Ivan Pichler [EMAIL PROTECTED] wrote:

this is exactly what I need Mert, but I put this file on my /web-inf/classes/ but the web application is not founding the file log4j.xml.Are there a parameter to be setted?thanks again

On 3/28/06, Mert Çalışkan [EMAIL PROTECTED]
 wrote: 


You can define a log4j.xml in your classpath i definitely suggest you to use commons-logging. Here is an example log4j.xml. You can define multiple loggers with different package names. By this you can discriminate your application ( 
tr.yourpackagename) log. You can also add other appenders. 

?xml version=1.0 encoding=UTF-8 ?!DOCTYPE log4j:configuration PUBLIC -//LOG4J log4j.dtdlog4j:configuration xmlns:log4j=
 http://jakarta.apache.org/log4j/

 appender name=CONSOLE class=org.apache.log4j.ConsoleAppender layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%d{dd MMM  HH:mm:ss,SSS} - %p - %C{1}.%M(%L) | %m%n/ 
 /layout /appender
 logger name=org.hibernate level value=ERROR/ /logger logger name=org.springframework level value=DEBUG/ 
 /logger logger name=tr.yourpackagename level value=DEBUG/ /logger
 root level value=DEBUG/ appender-ref ref=CONSOLE/ /root 
/log4j:configuration
On 3/27/06, Dudu [EMAIL PROTECTED] 
 wrote: 

I have a log4j.properties file, but I want it only to logs generated by my application...How can I do this... the better way... are there a way to disable the logs of myfaces, in the web.xml
 ???Thanks -- --DuduGoogleTalk: eduardopichler[at]gmail[dot]comskype:eduardopichler 


Re: dependent drop down lists using ajax

2006-03-30 Thread Mert Çalışkan
If you are referencing drill down combo boxes like country-state selection you can check out the ajaxAnywhere. 
it can be easily integrated to jsf.
here is an online demo.



-Mert
http://www.jroller.com/page/mert

On 3/30/06, Santiago Vacas [EMAIL PROTECTED] wrote:
hi,what's the better approach to do this in jsf.Can you send a link with an example?thankssantiago


Re: disabling logs on myfaces

2006-03-28 Thread Mert Çalışkan
You can define a log4j.xml in your classpath i definitely suggest you to use commons-logging. Here is an example log4j.xml. You can define multiple loggers with different package names. By this you can discriminate your application (
tr.yourpackagename) log. You can also add other appenders. 

?xml version=1.0 encoding=UTF-8 ?!DOCTYPE log4j:configuration PUBLIC -//LOG4J log4j.dtdlog4j:configuration xmlns:log4j=
http://jakarta.apache.org/log4j/

 appender name=CONSOLE class=org.apache.log4j.ConsoleAppender layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%d{dd MMM  HH:mm:ss,SSS} - %p - %C{1}.%M(%L) | %m%n/
 /layout /appender
 logger name=org.hibernate level value=ERROR/ /logger logger name=org.springframework level value=DEBUG/
 /logger logger name=tr.yourpackagename level value=DEBUG/ /logger
 root level value=DEBUG/ appender-ref ref=CONSOLE/ /root
/log4j:configuration
On 3/27/06, Dudu [EMAIL PROTECTED] wrote:

I have a log4j.properties file, but I want it only to logs generated by my application...How can I do this... the better way... are there a way to disable the logs of myfaces, in the web.xml
???Thanks