Re: [ANNOUNCE] Nightly Sandbox Builds Available

2006-06-06 Thread Martin Marinschek

Thanks Catalin and Sean for making this work!

Great work, guys!

regards,

Martin

On 6/6/06, Yogesh Chaudhari [EMAIL PROTECTED] wrote:

Thanks

On 6/5/06, Sean Schofield [EMAIL PROTECTED] wrote:
 Due to popular demand, the sandbox core is now available in the
 nightly builds directory[1].  Both source and binary distributions are
 available.  We also hope to have an examples distribution for sandbox
 shortly.

 The MyFaces Team

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





--

http://www.irian.at

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

Professional Support for Apache MyFaces


Re: Problems with table sorting.

2006-06-06 Thread Catalin Kormos
Title: Problems with table sorting.
Check out these links for more information:1. http://www.irian.at/myfaces/2. http://wiki.apache.org/myfaces/Working_with_auto_sortable_tablesYou need to wrap the header facet's content with a t:commandSortHeader component to make it work.HTH,Catalin"Dewhare, Amol" [EMAIL PROTECTED] wrote:  Hi AllI am having a need to sort data displayed using t:dataTable.   I am using the tomahawk.jar and have placed it into the WEB-INF/lib folder.   I am using the following jsp to display the results.   !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" %-- jsf:pagecode language="java" location="/JavaSource/com/intuit/ims/oasis/ui/jsp/component/search/TablesTest1.java" --%%-- /jsf:pagecode --%  HTML HEAD %@ taglib uri="http://java.sun.com/jsf/core" prefix="f"% %@taglib uri="http://java.sun.com/jsf/html" prefix="h"% %@taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"% TITLETablesTest1.jsp/TITLE /HEAD f:view
  BODY  t:dataTable var="results" value="#{pc_TableTest.names}" sortColumn="#{pc_TableTest.columnName}"   t:column id="column1"f:facet name="header"  h:outputText id="text1" value="#{pc_TableTest.columnName}"/h:outputText /f:facet   /t:column  /t:dataTable  /BODY /f:view /HTMLAnd my backing bean is as
 below:   public class TablesTest1 extends PageCodeBase {private final Name[] names = {new Name("Mariko", "Keeney"),new Name("John", "Wilson"),new Name("Charles", "Randor"),  
  new Name("Anna", "Dupont")  };  private String columnName = "Name";  protected HtmlSimpleColumn column1;  protected HtmlSimpleColumn getColumn1() {   if (column1 == null) {column1 = (HtmlSimpleColumn) findComponentInRoot("column1"); 
  }   return column1;  }  /**  * @return Returns the names.  */  public Name[] getNames() {   return names;  }  /**  * @return Returns the columnName.  */  public String getColumnName() {   return columnName;  }  /**  * @param columnName The columnName to set.  */  public void
 setColumnName(String columnName) {   this.columnName = columnName;  } }   The Name class is a standard java class having just 2 variables .i.e. firstName and lastName as below   public class Name {private String firstName;  private String lastName;public Name(String fName, String lName){
   firstName = fName;   lastName = lName;  }/**  * @return Returns the firstName.  */  public String getFirstName() {   return firstName;  }  /**  * @param firstName The firstName to set.  */  public void setFirstName(String firstName) {   this.firstName = firstName;  }  /**  * @return Returns the lastName. 
 */  public String getLastName() {   return lastName;  }  /**  * @param lastName The lastName to set.  */  public void setLastName(String lastName) {   this.lastName = lastName;  } }   When I run the jsp, the results are displayed, but t:dataTable does not provide any mechanism which will allow sorting the firstname.  Should t:datatable display an href on the column header to allow sorting?   Any help is highly appreciated.   Thanks Amol__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

Re: Problems with table sorting.

2006-06-06 Thread Cosma Colanicchia

To get sortable columns, you have to use a t:sortCommandHeader
around your columns header text. This way your setColumnName will be
called when the user click on the column header. Then, your getNames()
should check the current sort column and apply it to the data it
returns.


2006/6/6, Dewhare, Amol [EMAIL PROTECTED]:





Hi All

I am having a need to sort data displayed using t:dataTable.

I am using the tomahawk.jar and have placed it into the WEB-INF/lib folder.

I am using the following jsp to display the results.

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
%-- jsf:pagecode language=java
location=/JavaSource/com/intuit/ims/oasis/ui/jsp/component/search/TablesTest1.java
--%%-- /jsf:pagecode --%

HTML
HEAD
%@ taglib uri=http://java.sun.com/jsf/core; prefix=f%
[EMAIL PROTECTED] uri=http://java.sun.com/jsf/html; prefix=h%
[EMAIL PROTECTED] uri=http://myfaces.apache.org/tomahawk;
prefix=t%
TITLETablesTest1.jsp/TITLE
/HEAD
f:view
BODY
t:dataTable var=results value=#{pc_TableTest.names}
sortColumn=#{pc_TableTest.columnName}
t:column id=column1
f:facet name=header
h:outputText id=text1
value=#{pc_TableTest.columnName}/h:outputText
/f:facet
/t:column
/t:dataTable
/BODY
/f:view
/HTML


And my backing bean is as below:

public class TablesTest1 extends PageCodeBase {

private final Name[] names = {
new Name(Mariko, Keeney),
new Name(John, Wilson),
new Name(Charles, Randor),
new Name(Anna, Dupont)
};
private String columnName = Name;
protected HtmlSimpleColumn column1;
protected HtmlSimpleColumn getColumn1() {
if (column1 == null) {
column1 = (HtmlSimpleColumn)
findComponentInRoot(column1);
}
return column1;
}
/**
 * @return Returns the names.
 */
public Name[] getNames() {
return names;
}
/**
 * @return Returns the columnName.
 */
public String getColumnName() {
return columnName;
}
/**
 * @param columnName The columnName to set.
 */
public void setColumnName(String columnName) {
this.columnName = columnName;
}
}

The Name class is a standard java class having just 2 variables .i.e.
firstName and lastName as below

public class Name {

private String firstName;
private String lastName;

public Name(String fName, String lName){
firstName = fName;
lastName = lName;
}

/**
 * @return Returns the firstName.
 */
public String getFirstName() {
return firstName;
}
/**
 * @param firstName The firstName to set.
 */
public void setFirstName(String firstName) {
this.firstName = firstName;
}
/**
 * @return Returns the lastName.
 */
public String getLastName() {
return lastName;
}
/**
 * @param lastName The lastName to set.
 */
public void setLastName(String lastName) {
this.lastName = lastName;
}
}

When I run the jsp, the results are displayed, but t:dataTable does not
provide any mechanism which will allow sorting the firstname.

Should t:datatable display an href on the column header to allow sorting?

Any help is highly appreciated.

Thanks
Amol


New IE oddity - form target in window

2006-06-06 Thread Mario Ivankovits
Hi!

Just in case someone uses this feature too I'll share my findings here.
The problems arises after one of the last IE updates, don't know exactly
when.

On one page we submitted a form into a newly opened window target with
something like this:

var win = window.open(.);
form.submit();

where we used the same target name when opening the window and on the form.
Previously IE opened the window and the result of the form submittal
appeared there, now, after the update, IE opened the window and another
one with the result.
So you'll get two open windows.

Thank you M$ for this new feature ;-) I guess this has something to do
with their popup blocker which seems to be active even in the local zone.

I workaround it by using dojo/ajax. In short the new code is:
_win = window.open(idlePage,form.target,...);

dojo.io.bind(
{
load: function(type, data, evt)
{
_win.document.writeln(data);
_win.document.close();
},
mimetype: text/html,
formNode: form
});

idlePage is something like please wait, your request will be
processed 
As soon as the ajax request finished the window content will be replaced
with this data.
This works with firefox and IE at least in its latest version, dont know
about other browsers.

Ciao,
Mario



Re: New IE oddity - form target in window

2006-06-06 Thread Dennis Byrne
There is a window identifier passed to window.open.  If you don't want a second 
window, try using the same window identifier.

Dennis Byrne

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 6, 2006 03:34 AM
To: 'MyFaces Discussion'
Subject: New IE oddity - form target in window

Hi!

Just in case someone uses this feature too I'll share my findings here.
The problems arises after one of the last IE updates, don't know exactly
when.

On one page we submitted a form into a newly opened window target with
something like this:

var win = window.open(.);
form.submit();

where we used the same target name when opening the window and on the form.
Previously IE opened the window and the result of the form submittal
appeared there, now, after the update, IE opened the window and another
one with the result.
So you'll get two open windows.

Thank you M$ for this new feature ;-) I guess this has something to do
with their popup blocker which seems to be active even in the local zone.

I workaround it by using dojo/ajax. In short the new code is:
_win = window.open(idlePage,form.target,...);

dojo.io.bind(
{
load: function(type, data, evt)
{
_win.document.writeln(data);
_win.document.close();
},
mimetype: text/html,
formNode: form
});

idlePage is something like please wait, your request will be
processed 
As soon as the ajax request finished the window content will be replaced
with this data.
This works with firefox and IE at least in its latest version, dont know
about other browsers.

Ciao,
Mario






Re: New IE oddity - form target in window

2006-06-06 Thread Dennis Byrne
Does my window identifier equate to your same target name ?  Second 
parameter to open() ?

Dennis Byrne

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 6, 2006 03:52 AM
To: 'MyFaces Discussion'
Subject: Re: New IE oddity - form target in window

There is a window identifier passed to window.open.  If you don't want a 
second window, try using the same window identifier.

Dennis Byrne

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 6, 2006 03:34 AM
To: 'MyFaces Discussion'
Subject: New IE oddity - form target in window

Hi!

Just in case someone uses this feature too I'll share my findings here.
The problems arises after one of the last IE updates, don't know exactly
when.

On one page we submitted a form into a newly opened window target with
something like this:

var win = window.open(.);
form.submit();

where we used the same target name when opening the window and on the form.
Previously IE opened the window and the result of the form submittal
appeared there, now, after the update, IE opened the window and another
one with the result.
So you'll get two open windows.

Thank you M$ for this new feature ;-) I guess this has something to do
with their popup blocker which seems to be active even in the local zone.

I workaround it by using dojo/ajax. In short the new code is:
_win = window.open(idlePage,form.target,...);

dojo.io.bind(
{
load: function(type, data, evt)
{
_win.document.writeln(data);
_win.document.close();
},
mimetype: text/html,
formNode: form
});

idlePage is something like please wait, your request will be
processed 
As soon as the ajax request finished the window content will be replaced
with this data.
This works with firefox and IE at least in its latest version, dont know
about other browsers.

Ciao,
Mario









Re: New IE oddity - form target in window

2006-06-06 Thread Mario Ivankovits
Hi Dennis!
 Does my window identifier equate to your same target name ?  Second 
 parameter to open() ?
   
yes, and it worked for aeons  but last week, online-update and boom ...

Ciao,
Mario



SERIOUS BUG!!!!!!! Re: commandLinks don't work on Tomcat 5.5.17

2006-06-06 Thread Mike Duffy
This did not work for me.  The fact that the command link does not work is a 
SERIOUS BUG in
MyFaces.  Any suggestions on the best way to report this bug?

Mike


--- Garner Shawn [EMAIL PROTECTED] wrote:

 I got my commandLinks to work by adding the JSP-API.jar that came with
 facelets to my /web-inf/lib directory instead of the one in the
 tomcat/commons/lib directory.
 However this gives me another problem where my JSP forward isn't working.
 Seems to be some incompatibilty somewhere.
 I'm getting fed up and am going to back to Struts real soon.
 
 Shawn
 


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


Help with Navigation rule with parameters

2006-06-06 Thread Peter Henderson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi folks

I am trying to get a navigation rule which has a parameter to work, by
following http://wiki.apache.org/myfaces/Custom_Navigation_Handler


In my faces-config.xml

managed-bean
  managed-bean-namequickNewCompanyBean/managed-bean-name
managed-bean-classcom.starjar.facestest.QuickNewCompanyBean/managed-bean-class
   managed-bean-scopesession/managed-bean-scope
/managed-bean


  navigation-rule
navigation-case
  from-outcomeview-company/from-outcome

to-view-id/secure/company/view.jsp?companyID=#{quickNewCompanyBean.companyID}/to-view-id
  redirect /
/navigation-case
  /navigation-rule



- From the backing bean
public String create() {
log.info(IN QuickNewCompanyBean create, name= + name );

 companyID = 1; // DB WORK WAS HERE
 log.info(Created new Company ID= + companyID );
 return view-company;
}




When a user clicks on a button which calls the backing bean create
function, an error is produced instead of the view company page.

The error complains about Faces context not being found, and I should
check web.xml yet the rest of the web app works fine, and I do have
FacesServlet in my web.xml

servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet


Oh and I'm using MyFaces v1.1.3





Any help is greatly appreciated.


Peter Henderson.
www.starjar.com





2006-06-06 10:32:05,766 : QuickNewCompanyBean.create : IN
QuickNewCompanyBean create, name=Hello test7
2006-06-06 10:32:05,831 :
CustomFieldManagementEJB.createCustomFieldsForCompany :
createCustomFieldsForCompany 3623
2006-06-06 10:32:05,850 : QuickNewCompanyBean.create : Created new
Company ID=3623
2006-06-06 10:32:07,470 : UIComponentTag.setupResponseWriter : Faces
context not found. getResponseWriter will fail. Check if the
FacesServlet has been initialized at all in your web.xml.
2006-06-06 10:32:07,502 : StandardWrapperValve.invoke :
Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at
javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
at
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
at
org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:70)
at
org.apache.jsp.secure.company.view_jsp._jspx_meth_f_view_0(org.apache.jsp.secure.company.view_jsp:307)
at
org.apache.jsp.secure.company.view_jsp._jspService(org.apache.jsp.secure.company.view_jsp:280)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at sun.reflect.GeneratedMethodAccessor766.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at org.ajaxanywhere.AAFilter.doFilter(AAFilter.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
at

Want to display calendar in german language

2006-06-06 Thread Purvesh

Hi,

   I am currently using t:inputCalendar which displays the calendar in
english language. I want to display that in german language. such as mon to
mo, Tus to di, etc

If any body knows solution can help me.

Thakns and regards,
Purvesh
--
View this message in context: 
http://www.nabble.com/Want-to-display-calendar-in-german-language-t1741335.html#a4731938
Sent from the MyFaces - Users forum at Nabble.com.



Re: Help with Navigation rule with parameters

2006-06-06 Thread Purvesh

Hi,

 I feel the probelm in your faces-config.xml at navigation-rule
 I may be wrong since i have just started working on JSF. 
 U have not written from-view-id tag. Try that does it works.

navigation-rule
 from-view-id/index.jsp/from-view-id
navigation-case
  from-outcomeview-company/from-outcome
to-view-id/secure/company/view.jsp?companyID=#{quickNewCompanyBean.companyID}/to-view-id
  redirect /
/navigation-case
  /navigation-rule 

- Purvesh
--
View this message in context: 
http://www.nabble.com/Help-with-Navigation-rule-with-parameters-t1740878.html#a4732088
Sent from the MyFaces - Users forum at Nabble.com.



where is the schedule component

2006-06-06 Thread Christian Schmülling
Hello.

I miss the schedule component in tomahawk 1.1.2. Where can i find it? On
http://myfaces.apache.org/tomahawk/index.html it is in the tomahawp
package an no more in sandbox. But it isn't in the jar
(http://www.apache.org/dyn/closer.cgi/myfaces/binaries/tomahawk-1.1.2-bin.zip).

Wit best regards
Christian




RE: TreeTable example downloaded from SVN doesn't collapse or expand.

2006-06-06 Thread Todd Patrick
Matthias: Sorry, that is the case. I looked at it again last night.

Thanks,

--Todd 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Monday, June 05, 2006 9:44 PM
To: MyFaces Discussion
Subject: Re: TreeTable example downloaded from SVN doesn't collapse or
expand.

works for me.

since you are using Sun application server, are you sure, that you are
not mix RI and MyFaces?
I ask this because I think that the sun app server includes the RI
itself.

-Matthias

On 6/5/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
 Todd,

 I'll give it a try later this day, since I have to check tomahawk
against RI.

 Please stay tuned.



  Why is there an example of TreeTable in SVN that doesn't collapse 
  or expand?

 well, this project is volunteer based. Please don't forget this. All 
 of us can make mistakes. Nobody is interested in making you guys 
 crazy. But mistakes happens. So, I think it isn't working, because of 
 a mistake.

 -Matthias



--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


To clarify, I need the MyFaces RI and API to get Tomahawk 1.1.2 to work?

2006-06-06 Thread Todd Patrick



To clarify, I need the MyFaces RI and API to get 
Tomahawk 1.1.2 to work?

Using the Sun JSF 
1.1 RI and API with Tomahawk 1.1.2 will not work, correct?

Thanks,

--Todd


Re: Help with Navigation rule with parameters

2006-06-06 Thread Peter Henderson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Purvesh wrote:
 Hi,
 
  I feel the probelm in your faces-config.xml at navigation-rule
  I may be wrong since i have just started working on JSF. 
  U have not written from-view-id tag. Try that does it works.
 
 navigation-rule
  from-view-id/index.jsp/from-view-id  
 navigation-case
   from-outcomeview-company/from-outcome
 to-view-id/secure/company/view.jsp?companyID=#{quickNewCompanyBean.companyID}/to-view-id
   redirect /
 /navigation-case
   /navigation-rule 
 
 - Purvesh
 --
 View this message in context: 
 http://www.nabble.com/Help-with-Navigation-rule-with-parameters-t1740878.html#a4732088
 Sent from the MyFaces - Users forum at Nabble.com.
 
 

Thanks Purvesh

I dont think from-view-id is required. But I added it anyway and get the
same problem...




-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEhYWyaeMEhGmZg50RAiiRAJ9QwbclIbSCTFagIEEOwCC2bd009ACffg6Q
zhGGxGzHut1+wHmXmn65BLA=
=tiQs
-END PGP SIGNATURE-


Re: Build failure

2006-06-06 Thread Catalin Kormos
Try updating from the SVN again, it should be fixed now. The site/pom.xml was using myfaces-master 1.0.3 instead of 1.0.4 as parent, although i'm not sure why it didn't worked anyway, but it will work now.Regards,CatalinWendy Smoak [EMAIL PROTECTED] wrote: On 6/5/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:  [INFO] Scanning for projects...  [INFO]   [ERROR] FATAL ERROR  [INFO]   [INFO] Failed to resolve artifact.   GroupId: org.apache.myfaces.maven  ArtifactId: myfaces-master  Version: 1.0.3-SNAPSHOT   Reason: Unable to download the artifact
 from any repository org.apache.myfaces.maven:myfaces-master:pom:1.0.3-SNAPSHOT   from the specified remote repositories:central (http://repo1.maven.org/maven2)  mmm to me it works.I can reproduce it after rm -rf $M2_REPO/org/apache/myfaces.There is either a  missing, or an incorrect dependency version.The myfaces-master pom is currently at 1.0.4-SNAPSHOT, yet from theerror, something is looking for 1.0.3-SNAPSHOT.  Regardless, it shouldbe able to find 1.0.3-SNAPSHOT in Apache's Maven snapshot repo, yet itonly looked in the central repo.I'm sorry I don't have time to chase this down tonight, but I canconfirm that 'mvn install' does not work from a fresh checkout ofmyfaces/current with nothing in my local repo.--
 Wendy __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

What is the correct default jar list to run MyFaces Tomahawk 1.1.2?

2006-06-06 Thread Todd Patrick
What is the correct default jar list to run MyFaces Tomahawk 1.1.2? At
this point I have the following jars in my /domain1/lib directory for
SJSAS 8.2:   

commons-beanutils.jar
commons-codec-1.3.jar
commons-collections.jar
commons-digester.jar
commons-el-1.0.jar
commons-fileupload-1.0.jar
commons-lang-2.1.jar
commons-logging.jar
jsf-api.jar
jsf-impl.jar
jstl.jar
standard.jar
tomahawk-1.1.2.jar

I would just like to verify.

Thanks,

--Todd


Re: Is there an example of using tree2 with data from a database?

2006-06-06 Thread Cosma Colanicchia

See this wiki entry

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

You'll find two different methods to load tree content while opening
its nodes, with examples. I personally suggest you the second one
(Alternative Tree2 Lazy Loading Method...by jtmille3).

Cosma


2006/6/5, Todd Patrick [EMAIL PROTECTED]:

I looked in the mailing list archive, there are a lot of discussions,
but there are no examples.

The closest discussion is listed below between Sean and Stefan back on
Nov 22, 2005.

Honestly, I haven't found one example.

I'd appreciate any thoughts or pointers, whatever at this point.

Thanks,

--Todd



Please post your MyFaces questions to the user list.  There are lots
of people who can help you with this issue there.

sean

-- Forwarded message --
From: Stefan Vargocko [EMAIL PROTECTED]
Date: Nov 22, 2005 3:28 AM
Subject: Changing content of the tree2
To: [EMAIL PROTECTED]



Hi Sean,
I am using tree2. I am very satisfied with it, it's very nice and
allows a lot of control. But I have one problem. I want to change
content of the tree when some node is expanded. In general, I want to
load children for node which should be expanded (so there is a click
on a +). Is there any possibility to do this?
Thank You for help.
Stefan




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Monday, June 05, 2006 10:09 AM
To: MyFaces Discussion
Subject: Re: Is there an example of using tree2 with data from a
database?

can you search the archive?
Tree2 is very popular and question regarding loading data have already
been asked.

Thx,
-Matthias

On 6/5/06, Todd Patrick [EMAIL PROTECTED] wrote:


 Is there an example of using tree2 with data from a database?

 Example, I have the following tree:

 + A
 + B
 + C

 When I expand A, I need to send A as a parameter to a public
 method in my backing bean, which calls a method in a POJO that returns

 the record set 1, 2, 3.


 - A
   - 1
   - 2
   - 3
 +B
 +C

 The SQL in the POJO looks similar to:

 SELECT child_value, child_label
 FROM child_table
 WHERE parent = A


 Thoughts, suggestions or examples are greatly appreciated.

 Thanks,

 --Todd




--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com



Re: Help with Navigation rule with parameters

2006-06-06 Thread Cosma Colanicchia

Reading that wiki post:

   For these reasons [...] one should consider using a custom
Navigation Handler adding the following capabilities:

I've understood that you have to code and plug your custom navigation
handler to inplement this sort of navigation logic. I've never seen
using EL expressions in to-view-id elements, anyone know if this is
supported by the standard JSF nav. handler?


Cosma



2006/6/6, Peter Henderson [EMAIL PROTECTED]:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Purvesh wrote:
 Hi,

  I feel the probelm in your faces-config.xml at navigation-rule
  I may be wrong since i have just started working on JSF.
  U have not written from-view-id tag. Try that does it works.

 navigation-rule
  from-view-id/index.jsp/from-view-id
 navigation-case
   from-outcomeview-company/from-outcome
 
to-view-id/secure/company/view.jsp?companyID=#{quickNewCompanyBean.companyID}/to-view-id
   redirect /
 /navigation-case
   /navigation-rule

 - Purvesh
 --
 View this message in context: 
http://www.nabble.com/Help-with-Navigation-rule-with-parameters-t1740878.html#a4732088
 Sent from the MyFaces - Users forum at Nabble.com.



Thanks Purvesh

I dont think from-view-id is required. But I added it anyway and get the
same problem...




-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEhYWyaeMEhGmZg50RAiiRAJ9QwbclIbSCTFagIEEOwCC2bd009ACffg6Q
zhGGxGzHut1+wHmXmn65BLA=
=tiQs
-END PGP SIGNATURE-



Re: where is the schedule component

2006-06-06 Thread Enrico Municella
in tomahawk 1.1.2 schedule component is still in sandbox.only recently schedule move to tomahankbest regardsEnricoOn 6/6/06, Christian Schmülling
 [EMAIL PROTECTED] wrote:
Hello.I miss the schedule component in tomahawk 1.1.2. Where can i find it? Onhttp://myfaces.apache.org/tomahawk/index.html it is in the tomahawp
package an no more in sandbox. But it isn't in the jar(http://www.apache.org/dyn/closer.cgi/myfaces/binaries/tomahawk-1.1.2-bin.zip
).Wit best regardsChristian


id for inputText

2006-06-06 Thread vasiliy.kiryanov

Good afternoon.

I have too many  inputText elements. Therefore I generate ids for it.
But  I can't find right way.

If i use:
%for(int i=0; iPriceBackBean.numberGraduations; i++) {%
tr
  
td class=Nkrs%=(String)PriceBackBean.graduationsNames.get(i)%/td
%for(int j=0; j=9; j++) {
out.println(td class=\NCell\t:inputText id=\FE_+i+_+j+\
styleClass=\inputNCell\//td);
}%
/tr 
%}%

jsf pass to web-tier t:inputText  so it can be parsed by browser like normal
HTML input tag.

If I use 
  %for(int i=0; 
iPriceBackBean.numberGraduations; i++) {%
tr
  
td
class=Nkrs%=(String)PriceBackBean.graduationsNames.get(i)%/td
%for(int j=0; j=9; j++) {%
td 
class=NCellt:inputText id=FE_%=i%_%=j%
styleClass=inputNCell/
%}%
  /tr
%}%

then I get:
javax.servlet.ServletException: Exception in JSP: /price.jsp:87
84: tr
  
85: td
class=Nkrs%=(String)PriceBackBean.graduationsNames.get(i)%/td
86: %for(int j=0; j=9; j++) {%
87: td 
class=NCellt:inputText id=FE_%=i%_%=j%
styleClass=inputNCell/
88: %}%
89:   /tr
90: %}%


Stacktrace:
javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)

org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)

does anybody can suggest something ?
thank you.. for you time
--
View this message in context: 
http://www.nabble.com/id-for-inputText-t1742012.html#a4733978
Sent from the MyFaces - Users forum at Nabble.com.



RE: IExplorer Troubles...

2006-06-06 Thread octoberdan

I got everything working with:

body {
padding: 1em;
font-family: georgia, times, times new roman, serif;
color: #000;
}

img {
border:0px; 
}

.container {
width: 1000px;
margin: 0 auto;
border: 1px solid #333;
}

.banner {
border-bottom: 1px solid #333;
}

.banner h1 {
margin: 0;
padding: .5em;
}

.side {
width: 400px;
float: right;
padding: 1em;
overflow: auto;
height: 400px;
}

.sectionHeader {
text-align: center;
padding-bottom: 1em; 
}

.side p {
margin-top: 0;
}

.content {
position: absolute;
padding: 1em;
overflow: auto;
height: 400px;
}

.content h2 {
margin-top: 0;
}

.footer {
clear: both;
background-color: #666;
text-align: center;
}

.pageHeader {
text-align: center;
padding-top: 1em;
}

but am still having trouble with my calander popup... Any idea?
--
View this message in context: 
http://www.nabble.com/IExplorer-Troubles...-t1736799.html#a4734535
Sent from the MyFaces - Users forum at Nabble.com.



Re: Build failure

2006-06-06 Thread Bill Six
Thanks!

--- Catalin Kormos [EMAIL PROTECTED] wrote:

 Try updating from the SVN again, it should be fixed
 now. The site/pom.xml was using myfaces-master 1.0.3
 instead of 1.0.4 as parent, although i'm not sure
 why it didn't worked anyway, but it will work now.
 
 Regards,
 Catalin
 
 Wendy Smoak [EMAIL PROTECTED] wrote: On 6/5/06,
 Matthias Wessendorf  wrote:
 
   [INFO] Scanning for projects...
   [INFO]


   [ERROR] FATAL ERROR
   [INFO]


   [INFO] Failed to resolve artifact.
  
   GroupId: org.apache.myfaces.maven
   ArtifactId: myfaces-master
   Version: 1.0.3-SNAPSHOT
  
   Reason: Unable to download the artifact from any
 repository
  


org.apache.myfaces.maven:myfaces-master:pom:1.0.3-SNAPSHOT
  
   from the specified remote repositories:
 central (http://repo1.maven.org/maven2)
  
 
  mmm
  to me it works.
 
 I can reproduce it after rm -rf
 $M2_REPO/org/apache/myfaces.
 
 There is either a  missing, or an incorrect
 dependency version.
 
 The myfaces-master pom is currently at
 1.0.4-SNAPSHOT, yet from the
 error, something is looking for 1.0.3-SNAPSHOT. 
 Regardless, it should
 be able to find 1.0.3-SNAPSHOT in Apache's Maven
 snapshot repo, yet it
 only looked in the central repo.
 
 I'm sorry I don't have time to chase this down
 tonight, but I can
 confirm that 'mvn install' does not work from a
 fresh checkout of
 myfaces/current with nothing in my local repo.
 
 -- 
 Wendy
 
 
  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 


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


Re: To clarify, I need the MyFaces RI and API to get Tomahawk 1.1.2 to work?

2006-06-06 Thread Matthias Wessendorf

SUN has the only RI
MyFaces is an alternate impl

tomahawk 1.1.2 has problems w/ RI
Tomahawk 1.1.3 will be out soon.

Since you are using SUN (as app server) you have to remove the RI Jars
of the container
and add myfaces jars to your web-inf/lib.

Until the server has JSF jars, the myfaces jars in WEB-inf/lib will be ignored.

How to remove the RI jars ?
 I have no idea. Ask sun :-)

-Matthias

On 6/6/06, Todd Patrick [EMAIL PROTECTED] wrote:



To clarify, I need the MyFaces RI and API to get Tomahawk 1.1.2 to work?

Using the Sun JSF 1.1 RI and API with Tomahawk 1.1.2 will not work, correct?

Thanks,

--Todd



--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Client Side Validation

2006-06-06 Thread Gregg Bolinger
I could have sworm MyFaces could do Client Side (_javascript_) validation. Am I wrong? I've search the web and mailing lists and didn't fine anything.Thanks.Gregg


Re: where is the schedule component

2006-06-06 Thread Matthias Wessendorf

that will be tomahawk 1.1.4
it is include in that snapshot

On 6/6/06, Enrico Municella [EMAIL PROTECTED] wrote:

in tomahawk 1.1.2 schedule component is still in sandbox.
only recently schedule move to tomahank
best regards
Enrico


On 6/6/06, Christian Schmülling
[EMAIL PROTECTED] wrote:
 Hello.

 I miss the schedule component in tomahawk 1.1.2. Where can i find it? On
 http://myfaces.apache.org/tomahawk/index.html it is in
the tomahawp
 package an no more in sandbox. But it isn't in the jar

(http://www.apache.org/dyn/closer.cgi/myfaces/binaries/tomahawk-1.1.2-bin.zip
).

 Wit best regards
 Christian








--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: Client Side Validation

2006-06-06 Thread Mario Ivankovits
Hi Gregg!
 I could have sworm MyFaces could do Client Side (Javascript)
 validation.  Am I wrong?  I've search the web and mailing lists and
 didn't fine anything.
For now you can use struts-shale validation:
http://struts.apache.org/struts-shale/features-commons-validator.html
There you will find some validation tags which can do both - client and
server side navigation.

There is effort to integrate such a beast in MyFaces out of the box.

Ciao,
Mario



Re: Client Side Validation

2006-06-06 Thread Matthias Wessendorf

Cagatay is about to adding something

-Matthias

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

I could have sworm MyFaces could do Client Side (Javascript) validation.  Am
I wrong?  I've search the web and mailing lists and didn't fine anything.

Thanks.

Gregg




--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: Client Side Validation

2006-06-06 Thread Gregg Bolinger
Ugh, thanks but no thanks. :) I'll just right my own _javascript_ until something else comes along as part of MyFaces.GreggOn 6/6/06, Mario Ivankovits
 [EMAIL PROTECTED] wrote:Hi Gregg!
 I could have sworm MyFaces could do Client Side (_javascript_) validation.Am I wrong?I've search the web and mailing lists and didn't fine anything.For now you can use struts-shale validation:
http://struts.apache.org/struts-shale/features-commons-validator.htmlThere you will find some validation tags which can do both - client and
server side navigation.There is effort to integrate such a beast in MyFaces out of the box.Ciao,Mario


RE: TreeTable example downloaded from SVN doesn't collapse or expand.

2006-06-06 Thread [EMAIL PROTECTED]

Similar problem is nagging me for several days. Today I tried to deploy tree
table component along with myfaces jsf implementation in sun app server. But
I was unable to expand  collapse the node. To make sure it was not using
sun jsf ri I deployed the same application in websphere but result was still
the same. This is a genuine error  needs fixing.

--
View this message in context: 
http://www.nabble.com/RE%3A-TreeTable-example-downloaded-from-SVN-doesn%27t-collapse-or-expand.-t1741599.html#a4735198
Sent from the MyFaces - Users forum at Nabble.com.



Re: Warning message: Child count should be a multiple of the columns attribute?

2006-06-06 Thread Jeff Bischoff

I count 15 total components, Todd

Todd Patrick wrote:

The warning message I am receiving is:
 
PanelGrid tbForm:tabSearch has not enough children. Child count should 
be a multiple of the columns attribute.
 
Below is the code snippet. I have fourteen (14) total components and I'd 
like seven (7) on each row, thus I defined the columns attribute value 
as seven (7).
 
Why would this cause an warning?
 
Thanks,
 
--Todd
 
 
t:panelTabbedPane

id=searchTabs
bgcolor=#FF
cellpadding=0
cellspacing=0
width=100%
serverSideTabSwitch=client
t:panelTab id=tab1 label=#{tb.tbFindTabFF}
h:panelGrid
   id=tabSearch
   rowClasses=tbcell
   headerClass=instructions
   footerClass=cd
   columns=7
   width=1000
   bgcolor=#FF
 
   h:outputLabel for=transType
   h:outputText value=#{tb.tbBaseTType} 
styleClass=Paginatorhighlight/

   /h:outputLabel
 
   h:outputLabel for=transStartDate
   h:outputText value=#{tb.tbStartDate} 
styleClass=Paginatorhighlight/

   /h:outputLabel
 
   h:outputLabel for=transStartTime
   h:outputText value=#{tb.tbStartTime} 
styleClass=Paginatorhighlight/

   /h:outputLabel
  
   h:outputLabel for=transEndDate
   h:outputText value=#{tb.tbEndDate} 
styleClass=Paginatorhighlight/

   /h:outputLabel
 
   h:outputLabel for=transEndTime
   h:outputText value=#{tb.tbEndTime} 
styleClass=Paginatorhighlight/

   /h:outputLabel
 
   h:outputLabel for=clientID

   h:outputText value=#{tb.tbClientID} styleClass=Paginator/
   /h:outputLabel
 
   h:outputLabel for=transFind

   h:outputText value=#{tb.tbFind} styleClass=Paginator/
   /h:outputLabel
  
   h:selectOneMenu

   id=transType
   required=true
   value=#{tbrowser.currentTransType}
   f:selectItems value=#{tbrowser.transType}/
   /h:selectOneMenu
 
   t:inputCalendar

   size=8
   id=transStartDate
   monthYearRowClass=yearMonthHeader
   weekRowClass=weekHeader
   currentDayCellClass=currentDayCell
   renderAsPopup=true
   popupTodayString=Today is
   popupWeekString=Wk
   renderPopupButtonAsImage=false
   required=true
   value=#{tbrowser.currentTransStartDate}
   helpText=MM/DD//
 
   h:selectOneMenu

   id=transStartTime
   required=true
   value=#{tbrowser.currentTransStartTime}
   f:selectItems value=#{tbrowser.transStartTime}/
   /h:selectOneMenu
  
   t:inputCalendar

   size=8
   id=transEndDate
   monthYearRowClass=yearMonthHeader
   weekRowClass=weekHeader
   currentDayCellClass=currentDayCell
   renderAsPopup=true
   popupTodayString=Today is
   popupWeekString=Wk
   renderPopupButtonAsImage=false
   required=true
   value=#{tbrowser.currentTransEndDate}
   helpText=MM/DD//
 
   h:selectOneMenu

   id=transEndTime
   required=true
   value=#{tbrowser.currentTransEndTime}
   f:selectItems value=#{tbrowser.transEndTime}/
   /h:selectOneMenu
 
   h:selectOneMenu

   id=clientID
   value=#{tbrowser.currentClientID}
   required=true
   f:selectItems value=#{tbrowser.tbClientID}/
   /h:selectOneMenu
 
   h:inputText id=transFind maxlength=20 size=20/
  
   h:panelGroup
   h:commandButton value=Search 
actionListener=#{tbrowser.transTypeSelected}/

   h:messages id=transTypeError styleClass=error/
   f:verbatim
   br
   /f:verbatim
   h:outputText binding=#{tbrowser.selItemsOutput}/
   /h:panelGroup
 
/h:panelGrid

/t:panelTab





RE: TreeTable example downloaded from SVN doesn't collapse or expand.

2006-06-06 Thread Todd Patrick
Ajay: I did get this to work.

I do use SJSAS 8.2 and the jars that I needed are:

commons-beanutils-1.7.0.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-digester-1.6.jar
commons-el-1.0.jar
commons-fileupload-1.0.jar
commons-lang-2.1.jar
commons-logging-1.0.4.jar
jstl-1.1.0.jar
myfaces-api-1.1.3.jar
myfaces-impl-1.1.3.jar
tomahawk-1.1.2.jar

Once I had those jars in my server's library directory, everything
worked.

Thanks,

--Todd



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 06, 2006 10:13 AM
To: users@myfaces.apache.org
Subject: RE: TreeTable example downloaded from SVN doesn't collapse or
expand.


Similar problem is nagging me for several days. Today I tried to deploy
tree table component along with myfaces jsf implementation in sun app
server. But I was unable to expand  collapse the node. To make sure it
was not using sun jsf ri I deployed the same application in websphere
but result was still the same. This is a genuine error  needs fixing.

--
View this message in context:
http://www.nabble.com/RE%3A-TreeTable-example-downloaded-from-SVN-doesn%
27t-collapse-or-expand.-t1741599.html#a4735198
Sent from the MyFaces - Users forum at Nabble.com.



Re: TreeTable example downloaded from SVN doesn't collapse or expand.

2006-06-06 Thread Matthias Wessendorf

ok,

that might be a problem of treeTable and the RI
I tryed w/ MyFaces and it worked.

Will check the RI again.

In meantime, can you create a ticket (JIRA) on that ?

-Matthias

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


Similar problem is nagging me for several days. Today I tried to deploy tree
table component along with myfaces jsf implementation in sun app server. But
I was unable to expand  collapse the node. To make sure it was not using
sun jsf ri I deployed the same application in websphere but result was still
the same. This is a genuine error  needs fixing.

--
View this message in context: 
http://www.nabble.com/RE%3A-TreeTable-example-downloaded-from-SVN-doesn%27t-collapse-or-expand.-t1741599.html#a4735198
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


Load Testing JSF?

2006-06-06 Thread Yee CN








Hi,



I am trying out jMeter with JSF  but not having much
success so far. I would appreciate if anybody could share your experience
regarding load testing JSF applications so I dont have sweet blood to
reinvent the wheel. I promise I will compile a Wiki on this.



Many thanks in advance.



Regards,

Yee








Re: TreeTable example downloaded from SVN doesn't collapse or expand.

2006-06-06 Thread Matthias Wessendorf

So you got a chance to replace the RI.

cool,
Matthias

On 6/6/06, Todd Patrick [EMAIL PROTECTED] wrote:

Ajay: I did get this to work.

I do use SJSAS 8.2 and the jars that I needed are:

commons-beanutils-1.7.0.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-digester-1.6.jar
commons-el-1.0.jar
commons-fileupload-1.0.jar
commons-lang-2.1.jar
commons-logging-1.0.4.jar
jstl-1.1.0.jar
myfaces-api-1.1.3.jar
myfaces-impl-1.1.3.jar
tomahawk-1.1.2.jar

Once I had those jars in my server's library directory, everything
worked.

Thanks,

--Todd



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 06, 2006 10:13 AM
To: users@myfaces.apache.org
Subject: RE: TreeTable example downloaded from SVN doesn't collapse or
expand.


Similar problem is nagging me for several days. Today I tried to deploy
tree table component along with myfaces jsf implementation in sun app
server. But I was unable to expand  collapse the node. To make sure it
was not using sun jsf ri I deployed the same application in websphere
but result was still the same. This is a genuine error  needs fixing.

--
View this message in context:
http://www.nabble.com/RE%3A-TreeTable-example-downloaded-from-SVN-doesn%
27t-collapse-or-expand.-t1741599.html#a4735198
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: TreeTable example downloaded from SVN doesn't collapse or expand.

2006-06-06 Thread Todd Patrick
SJSAS 8.2, I've learned to love.

Replacing the RI is not an issue.

Thanks,

--Todd 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Tuesday, June 06, 2006 10:23 AM
To: MyFaces Discussion
Subject: Re: TreeTable example downloaded from SVN doesn't collapse or
expand.

So you got a chance to replace the RI.

cool,
Matthias

On 6/6/06, Todd Patrick [EMAIL PROTECTED] wrote:
 Ajay: I did get this to work.

 I do use SJSAS 8.2 and the jars that I needed are:

 commons-beanutils-1.7.0.jar
 commons-codec-1.3.jar
 commons-collections-3.1.jar
 commons-digester-1.6.jar
 commons-el-1.0.jar
 commons-fileupload-1.0.jar
 commons-lang-2.1.jar
 commons-logging-1.0.4.jar
 jstl-1.1.0.jar
 myfaces-api-1.1.3.jar
 myfaces-impl-1.1.3.jar
 tomahawk-1.1.2.jar

 Once I had those jars in my server's library directory, everything 
 worked.

 Thanks,

 --Todd



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 06, 2006 10:13 AM
 To: users@myfaces.apache.org
 Subject: RE: TreeTable example downloaded from SVN doesn't collapse or

 expand.


 Similar problem is nagging me for several days. Today I tried to 
 deploy tree table component along with myfaces jsf implementation in 
 sun app server. But I was unable to expand  collapse the node. To 
 make sure it was not using sun jsf ri I deployed the same application 
 in websphere but result was still the same. This is a genuine error 
needs fixing.

 --
 View this message in context:
 http://www.nabble.com/RE%3A-TreeTable-example-downloaded-from-SVN-does
 n%
 27t-collapse-or-expand.-t1741599.html#a4735198
 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: Client Side Validation

2006-06-06 Thread Mario Ivankovits
Hi!
 Ugh, thanks but no thanks. :)  I'll just right my own javascript until
 something else comes along as part of MyFaces.
There is no need to be shy against struts-shale, its a very slim library
for JSF - you didnt need the whole struts stuff.
Though, I understand when you try to avoid any new dependency, I try the
same ;-)

Ciao,
Mario



Re: Load Testing JSF?

2006-06-06 Thread Dennis Byrne
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 AM
To: ''MyFaces Discussion''
Subject: Load Testing JSF?

Hi,



I am trying out jMeter with JSF - but not having much success so far. I
would 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: Help with Navigation rule with parameters

2006-06-06 Thread Jonathan Harley

Cosma Colanicchia wrote:

Reading that wiki post:

   For these reasons [...] one should consider using a custom
Navigation Handler adding the following capabilities:

I've understood that you have to code and plug your custom navigation
handler to inplement this sort of navigation logic. I've never seen
using EL expressions in to-view-id elements, anyone know if this is
supported by the standard JSF nav. handler?


No, it isn't, but it's very easy to do. See for example
http://forum.java.sun.com/thread.jspa?threadID=492721messageID=2318174


Jon.
--
.
  Dr Jonathan Harley   .
   .   Email: [EMAIL PROTECTED]
   Zac Parkplatz Ltd   .   Office Telephone: 024 7633 1375
   www.parkplatz.net   .   Mobile: 079 4116 0423


RE: Missing myfaces-X.X.X-examples.zip

2006-06-06 Thread David Van Stone

Thanks, Todd!

I found examples for MyFaces 1.1.3 under Tomahawk (who knew?):

http://svn.apache.org/repos/asf/myfaces/tomahawk/branches/1_1_3/examples/

I used the blank directory and succeeded in making a Hello World JSF
application under Weblogic 9.1.

My recommendation to the MyFaces web folks is to update the Getting Started
section. It's *not* clear at all where the examples can be found. Having
just this blank example (which has the key information in web.xml) would be
a helpful addition outside of Tomahawk.

Thanks for the help, and I'm sure I'll be writing in again later with more
question!

David Van Stone

--
View this message in context: 
http://www.nabble.com/RE%3A-Missing-myfaces-X.X.X-examples.zip-t1737930.html#a4736223
Sent from the MyFaces - Users forum at Nabble.com.



Re: Warning message: Child count should be a multiple of the columns attribute?

2006-06-06 Thread Matthias Wessendorf

me too

On 6/6/06, Jeff Bischoff [EMAIL PROTECTED] wrote:

I count 15 total components, Todd

Todd Patrick wrote:
 The warning message I am receiving is:

 PanelGrid tbForm:tabSearch has not enough children. Child count should
 be a multiple of the columns attribute.

 Below is the code snippet. I have fourteen (14) total components and I'd
 like seven (7) on each row, thus I defined the columns attribute value
 as seven (7).

 Why would this cause an warning?

 Thanks,

 --Todd


 t:panelTabbedPane
 id=searchTabs
 bgcolor=#FF
 cellpadding=0
 cellspacing=0
 width=100%
 serverSideTabSwitch=client
 t:panelTab id=tab1 label=#{tb.tbFindTabFF}
 h:panelGrid
id=tabSearch
rowClasses=tbcell
headerClass=instructions
footerClass=cd
columns=7
width=1000
bgcolor=#FF

h:outputLabel for=transType
h:outputText value=#{tb.tbBaseTType}
 styleClass=Paginatorhighlight/
/h:outputLabel

h:outputLabel for=transStartDate
h:outputText value=#{tb.tbStartDate}
 styleClass=Paginatorhighlight/
/h:outputLabel

h:outputLabel for=transStartTime
h:outputText value=#{tb.tbStartTime}
 styleClass=Paginatorhighlight/
/h:outputLabel

h:outputLabel for=transEndDate
h:outputText value=#{tb.tbEndDate}
 styleClass=Paginatorhighlight/
/h:outputLabel

h:outputLabel for=transEndTime
h:outputText value=#{tb.tbEndTime}
 styleClass=Paginatorhighlight/
/h:outputLabel

h:outputLabel for=clientID
h:outputText value=#{tb.tbClientID} styleClass=Paginator/
/h:outputLabel

h:outputLabel for=transFind
h:outputText value=#{tb.tbFind} styleClass=Paginator/
/h:outputLabel

h:selectOneMenu
id=transType
required=true
value=#{tbrowser.currentTransType}
f:selectItems value=#{tbrowser.transType}/
/h:selectOneMenu

t:inputCalendar
size=8
id=transStartDate
monthYearRowClass=yearMonthHeader
weekRowClass=weekHeader
currentDayCellClass=currentDayCell
renderAsPopup=true
popupTodayString=Today is
popupWeekString=Wk
renderPopupButtonAsImage=false
required=true
value=#{tbrowser.currentTransStartDate}
helpText=MM/DD//

h:selectOneMenu
id=transStartTime
required=true
value=#{tbrowser.currentTransStartTime}
f:selectItems value=#{tbrowser.transStartTime}/
/h:selectOneMenu

t:inputCalendar
size=8
id=transEndDate
monthYearRowClass=yearMonthHeader
weekRowClass=weekHeader
currentDayCellClass=currentDayCell
renderAsPopup=true
popupTodayString=Today is
popupWeekString=Wk
renderPopupButtonAsImage=false
required=true
value=#{tbrowser.currentTransEndDate}
helpText=MM/DD//

h:selectOneMenu
id=transEndTime
required=true
value=#{tbrowser.currentTransEndTime}
f:selectItems value=#{tbrowser.transEndTime}/
/h:selectOneMenu

h:selectOneMenu
id=clientID
value=#{tbrowser.currentClientID}
required=true
f:selectItems value=#{tbrowser.tbClientID}/
/h:selectOneMenu

h:inputText id=transFind maxlength=20 size=20/

h:panelGroup
h:commandButton value=Search
 actionListener=#{tbrowser.transTypeSelected}/
h:messages id=transTypeError styleClass=error/
f:verbatim
br
/f:verbatim
h:outputText binding=#{tbrowser.selItemsOutput}/
/h:panelGroup

 /h:panelGrid
 /t:panelTab






--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: commandLinks don't work on Tomcat 5.5.17

2006-06-06 Thread Jeff Bischoff
I am using JBoss 4.0.4 with MyFaces 1.1.3, tomahawk 1.1.2, and have no 
problems. I also use commandLink extensively in my application. You have 
shown us the generated javascript, but not the actual JSF page? Maybe we 
can notice something you did not...


By the way, I have seen this behaviour before in myfaces, where I 
clicked a link and got nothing, not even an error. For me, the cause 
turned out to be a null pointer somehow crashing JSF. I had an EL 
expression, e.g. h:outputText value=#{myBean.myDAO.myTextString}/. 
When myDAO was null, I would encounter behaviour like you are 
describing. After displaying a page with such a mistake, none of the 
buttons would work anymore, and I basically couldn't get anywhere until 
I redeployed...


Regards,

Jeff Bischoff
Kenneth L Kurz  Assoc, Inc.

Mike Duffy wrote:
Here is the generated JavaScript for the command link:  

  a href=#

onclick=clear_selectProjectTypeIssueType();document.forms['selectProjectTypeIssueType'].elements['autoScroll'].value=getScrolling();document.forms['selectProjectTypeIssueType'].elements['selectProjectTypeIssueType:_link_hidden_'].value='selectProjectTypeIssueType:selectButton';if(document.forms['selectProjectTypeIssueType'].onsubmit){var
result=document.forms['selectProjectTypeIssueType'].onsubmit();  if( (typeof 
result ==
'undefined') || result )
{document.forms['selectProjectTypeIssueType'].submit();}}else{document.forms['selectProjectTypeIssueType'].submit();}return
false; id=selectProjectTypeIssueType:selectButtonspan 
class=buttonLabelSelect/span/a




--- Mike Duffy [EMAIL PROTECTED] wrote:



I am having this same problem on JBoss 4.0.4 which uses Tomcat 5.5.

Everything seems to be configured correctly, click on the command link, and 
nothing happens.  I
do
not even get an error message.

I Googled for a solution.  At one time this was a problem in the SUN RI and the 
solution was to
switch to MyFaces 
(http://forum.java.sun.com/thread.jspa?threadID=739598messageID=4244849)

I got the nightly build for MyFaces (1.14 SNAPSHOT); this did not help.

It is very frustrating when something so simple does not work.  Any help would 
be appreciated.

Thx.

Mike




--- Garner Shawn [EMAIL PROTECTED] wrote:



Added the forms around the links.
No changes, still not working.  Not getting a javascript error anymore.
Just does nothing.

-
From: Matthias Wessendorf [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Date: Wed, 31 May 2006 07:04:38 +0200
Subject: Re: commandLinks don't work on Tomcat 5.5.17
have you wrapped them into h:form ?

like

h:form
...
h:commandLink ... /
...
h:commandLink ... /
...
/h:form

-Matthias




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





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









Re: Missing myfaces-X.X.X-examples.zip

2006-06-06 Thread Matthias Wessendorf

I created a jira ticket for this task:

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

-Matthias

On 6/6/06, David Van Stone [EMAIL PROTECTED] wrote:


Thanks, Todd!

I found examples for MyFaces 1.1.3 under Tomahawk (who knew?):

http://svn.apache.org/repos/asf/myfaces/tomahawk/branches/1_1_3/examples/

I used the blank directory and succeeded in making a Hello World JSF
application under Weblogic 9.1.

My recommendation to the MyFaces web folks is to update the Getting Started
section. It's *not* clear at all where the examples can be found. Having
just this blank example (which has the key information in web.xml) would be
a helpful addition outside of Tomahawk.

Thanks for the help, and I'm sure I'll be writing in again later with more
question!

David Van Stone

--
View this message in context: 
http://www.nabble.com/RE%3A-Missing-myfaces-X.X.X-examples.zip-t1737930.html#a4736223
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: Warning message: Child count should be a multiple of the columns attribute?

2006-06-06 Thread Todd Patrick
Ha!

Your right. Sorry about that guys.

Thanks,

--Todd 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Tuesday, June 06, 2006 11:09 AM
To: MyFaces Discussion
Subject: Re: Warning message: Child count should be a multiple of the
columns attribute?

me too

On 6/6/06, Jeff Bischoff [EMAIL PROTECTED] wrote:
 I count 15 total components, Todd

 Todd Patrick wrote:
  The warning message I am receiving is:
 
  PanelGrid tbForm:tabSearch has not enough children. Child count 
  should be a multiple of the columns attribute.
 
  Below is the code snippet. I have fourteen (14) total components and

  I'd like seven (7) on each row, thus I defined the columns attribute

  value as seven (7).
 
  Why would this cause an warning?
 
  Thanks,
 
  --Todd
 
 
  t:panelTabbedPane
  id=searchTabs
  bgcolor=#FF
  cellpadding=0
  cellspacing=0
  width=100%
  serverSideTabSwitch=client
  t:panelTab id=tab1 label=#{tb.tbFindTabFF} h:panelGrid
 id=tabSearch
 rowClasses=tbcell
 headerClass=instructions
 footerClass=cd
 columns=7
 width=1000
 bgcolor=#FF
 
 h:outputLabel for=transType
 h:outputText value=#{tb.tbBaseTType}
  styleClass=Paginatorhighlight/
 /h:outputLabel
 
 h:outputLabel for=transStartDate
 h:outputText value=#{tb.tbStartDate}
  styleClass=Paginatorhighlight/
 /h:outputLabel
 
 h:outputLabel for=transStartTime
 h:outputText value=#{tb.tbStartTime}
  styleClass=Paginatorhighlight/
 /h:outputLabel
 
 h:outputLabel for=transEndDate
 h:outputText value=#{tb.tbEndDate}
  styleClass=Paginatorhighlight/
 /h:outputLabel
 
 h:outputLabel for=transEndTime
 h:outputText value=#{tb.tbEndTime}
  styleClass=Paginatorhighlight/
 /h:outputLabel
 
 h:outputLabel for=clientID
 h:outputText value=#{tb.tbClientID}
styleClass=Paginator/
 /h:outputLabel
 
 h:outputLabel for=transFind
 h:outputText value=#{tb.tbFind} styleClass=Paginator/
 /h:outputLabel
 
 h:selectOneMenu
 id=transType
 required=true
 value=#{tbrowser.currentTransType}
 f:selectItems value=#{tbrowser.transType}/
 /h:selectOneMenu
 
 t:inputCalendar
 size=8
 id=transStartDate
 monthYearRowClass=yearMonthHeader
 weekRowClass=weekHeader
 currentDayCellClass=currentDayCell
 renderAsPopup=true
 popupTodayString=Today is
 popupWeekString=Wk
 renderPopupButtonAsImage=false
 required=true
 value=#{tbrowser.currentTransStartDate}
 helpText=MM/DD//
 
 h:selectOneMenu
 id=transStartTime
 required=true
 value=#{tbrowser.currentTransStartTime}
 f:selectItems value=#{tbrowser.transStartTime}/
 /h:selectOneMenu
 
 t:inputCalendar
 size=8
 id=transEndDate
 monthYearRowClass=yearMonthHeader
 weekRowClass=weekHeader
 currentDayCellClass=currentDayCell
 renderAsPopup=true
 popupTodayString=Today is
 popupWeekString=Wk
 renderPopupButtonAsImage=false
 required=true
 value=#{tbrowser.currentTransEndDate}
 helpText=MM/DD//
 
 h:selectOneMenu
 id=transEndTime
 required=true
 value=#{tbrowser.currentTransEndTime}
 f:selectItems value=#{tbrowser.transEndTime}/
 /h:selectOneMenu
 
 h:selectOneMenu
 id=clientID
 value=#{tbrowser.currentClientID}
 required=true
 f:selectItems value=#{tbrowser.tbClientID}/
 /h:selectOneMenu
 
 h:inputText id=transFind maxlength=20 size=20/
 
 h:panelGroup
 h:commandButton value=Search
  actionListener=#{tbrowser.transTypeSelected}/
 h:messages id=transTypeError styleClass=error/
 f:verbatim
 br
 /f:verbatim
 h:outputText binding=#{tbrowser.selItemsOutput}/
 /h:panelGroup
 
  /h:panelGrid
  /t:panelTab





--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: Warning message: Child count should be a multiple of the columns attribute?

2006-06-06 Thread Matthias Wessendorf

You are welcome.

Everbody makes mistakes...

On 6/6/06, Todd Patrick [EMAIL PROTECTED] wrote:

Ha!

Your right. Sorry about that guys.

Thanks,

--Todd

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Tuesday, June 06, 2006 11:09 AM
To: MyFaces Discussion
Subject: Re: Warning message: Child count should be a multiple of the
columns attribute?

me too

On 6/6/06, Jeff Bischoff [EMAIL PROTECTED] wrote:
 I count 15 total components, Todd

 Todd Patrick wrote:
  The warning message I am receiving is:
 
  PanelGrid tbForm:tabSearch has not enough children. Child count
  should be a multiple of the columns attribute.
 
  Below is the code snippet. I have fourteen (14) total components and

  I'd like seven (7) on each row, thus I defined the columns attribute

  value as seven (7).
 
  Why would this cause an warning?
 
  Thanks,
 
  --Todd
 
 
  t:panelTabbedPane
  id=searchTabs
  bgcolor=#FF
  cellpadding=0
  cellspacing=0
  width=100%
  serverSideTabSwitch=client
  t:panelTab id=tab1 label=#{tb.tbFindTabFF} h:panelGrid
 id=tabSearch
 rowClasses=tbcell
 headerClass=instructions
 footerClass=cd
 columns=7
 width=1000
 bgcolor=#FF
 
 h:outputLabel for=transType
 h:outputText value=#{tb.tbBaseTType}
  styleClass=Paginatorhighlight/
 /h:outputLabel
 
 h:outputLabel for=transStartDate
 h:outputText value=#{tb.tbStartDate}
  styleClass=Paginatorhighlight/
 /h:outputLabel
 
 h:outputLabel for=transStartTime
 h:outputText value=#{tb.tbStartTime}
  styleClass=Paginatorhighlight/
 /h:outputLabel
 
 h:outputLabel for=transEndDate
 h:outputText value=#{tb.tbEndDate}
  styleClass=Paginatorhighlight/
 /h:outputLabel
 
 h:outputLabel for=transEndTime
 h:outputText value=#{tb.tbEndTime}
  styleClass=Paginatorhighlight/
 /h:outputLabel
 
 h:outputLabel for=clientID
 h:outputText value=#{tb.tbClientID}
styleClass=Paginator/
 /h:outputLabel
 
 h:outputLabel for=transFind
 h:outputText value=#{tb.tbFind} styleClass=Paginator/
 /h:outputLabel
 
 h:selectOneMenu
 id=transType
 required=true
 value=#{tbrowser.currentTransType}
 f:selectItems value=#{tbrowser.transType}/
 /h:selectOneMenu
 
 t:inputCalendar
 size=8
 id=transStartDate
 monthYearRowClass=yearMonthHeader
 weekRowClass=weekHeader
 currentDayCellClass=currentDayCell
 renderAsPopup=true
 popupTodayString=Today is
 popupWeekString=Wk
 renderPopupButtonAsImage=false
 required=true
 value=#{tbrowser.currentTransStartDate}
 helpText=MM/DD//
 
 h:selectOneMenu
 id=transStartTime
 required=true
 value=#{tbrowser.currentTransStartTime}
 f:selectItems value=#{tbrowser.transStartTime}/
 /h:selectOneMenu
 
 t:inputCalendar
 size=8
 id=transEndDate
 monthYearRowClass=yearMonthHeader
 weekRowClass=weekHeader
 currentDayCellClass=currentDayCell
 renderAsPopup=true
 popupTodayString=Today is
 popupWeekString=Wk
 renderPopupButtonAsImage=false
 required=true
 value=#{tbrowser.currentTransEndDate}
 helpText=MM/DD//
 
 h:selectOneMenu
 id=transEndTime
 required=true
 value=#{tbrowser.currentTransEndTime}
 f:selectItems value=#{tbrowser.transEndTime}/
 /h:selectOneMenu
 
 h:selectOneMenu
 id=clientID
 value=#{tbrowser.currentClientID}
 required=true
 f:selectItems value=#{tbrowser.tbClientID}/
 /h:selectOneMenu
 
 h:inputText id=transFind maxlength=20 size=20/
 
 h:panelGroup
 h:commandButton value=Search
  actionListener=#{tbrowser.transTypeSelected}/
 h:messages id=transTypeError styleClass=error/
 f:verbatim
 br
 /f:verbatim
 h:outputText binding=#{tbrowser.selItemsOutput}/
 /h:panelGroup
 
  /h:panelGrid
  /t:panelTab





--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com




--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: Retrieve Last Action

2006-06-06 Thread Jeff Bischoff
We use a very simple confirm dialog for some of our buttons. I'm not 
sure if this is what you are looking for (javascript provides very 
limited default popup choices...), but it's at least a start:


h:commandLink
onclick=if (!confirm('Are You Sure You Want To Delete?'))
return false;
action=#{myAction.delete}

...

/h:commandLink


If you do use my example, make sure you leave in the double-negative 
javascript logic. Don't return true, as you will skip the JSF lifecycle.


Regards,

Jeff Bischoff
Kenneth L Kurz  Assoc, Inc.

Joel Wilson wrote:
I'm not sure if what you are trying to do is possible. But a simpler way 
to accomplish the same thing would be to use a Javascript prompt to ask 
the question, and if they hit Yes/Ok then let the action go through. 

If the information is available to your page (or List when using a 
dataTable), you could have the question seem intelligent from the user's 
perspective. Example 'Are you sure you want to remove Don Pablos from 
the list restaurants of in the Airport Area'.


On Jun 5, 2006, at 2:05 PM, Lking wrote:


I'm needing a help of you guys.


How can I retrieve the last action executed? I'm just through a 
business logical and sometimes it might open another screen displaying 
a confirm message. At this point, I'd like when the user hits Yes to 
execute the last action it was trying to. 



Joel Wilson
Web Application Developer/Architect
D E V O T I O N http://www.devotionmedia.com
-
Skype: Jesfrk7
Skype: 321.285.7470

Cell: 321.332.4654
Office: 407.677.8514
Fax: 407.677.8610
-
1964 Howell Branch Road
Suite 102
Winter Park, Florida 32792
-
Changing the world, one byte at a time . . .

























RE: Warning message: Child count should be a multiple of the columns attribute?

2006-06-06 Thread Todd Patrick
Whoa???

Since I have an odd number (15), I'd like my components displayed as:

x x x x x x x
x x x x x x x
x

(each x represents a JSF component)

The odd one by itself is a h:panelGroup that contains a commandButton,
messages, verbatim and an outputText component.

What would I specify for the columns attribute?

h:panelGrid
id=tabSearch
rowClasses=tbcell
headerClass=instructions
footerClass=cd
columns=?
width=1000
bgcolor=#FF

I'd to keep the seven (7) labels together, the seven (7) input and
select components together and have the h:panelGroup on it's own line.

Thanks,

--Todd



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Tuesday, June 06, 2006 11:21 AM
To: MyFaces Discussion
Subject: Re: Warning message: Child count should be a multiple of the
columns attribute?

You are welcome.

Everbody makes mistakes...

On 6/6/06, Todd Patrick [EMAIL PROTECTED] wrote:
 Ha!

 Your right. Sorry about that guys.

 Thanks,

 --Todd

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf 
 Of Matthias Wessendorf
 Sent: Tuesday, June 06, 2006 11:09 AM
 To: MyFaces Discussion
 Subject: Re: Warning message: Child count should be a multiple of the 
 columns attribute?

 me too

 On 6/6/06, Jeff Bischoff [EMAIL PROTECTED] wrote:
  I count 15 total components, Todd
 
  Todd Patrick wrote:
   The warning message I am receiving is:
  
   PanelGrid tbForm:tabSearch has not enough children. Child count 
   should be a multiple of the columns attribute.
  
   Below is the code snippet. I have fourteen (14) total components 
   and

   I'd like seven (7) on each row, thus I defined the columns 
   attribute

   value as seven (7).
  
   Why would this cause an warning?
  
   Thanks,
  
   --Todd
  
  
   t:panelTabbedPane
   id=searchTabs
   bgcolor=#FF
   cellpadding=0
   cellspacing=0
   width=100%
   serverSideTabSwitch=client
   t:panelTab id=tab1 label=#{tb.tbFindTabFF} h:panelGrid
  id=tabSearch
  rowClasses=tbcell
  headerClass=instructions
  footerClass=cd
  columns=7
  width=1000
  bgcolor=#FF
  
  h:outputLabel for=transType
  h:outputText value=#{tb.tbBaseTType}
   styleClass=Paginatorhighlight/
  /h:outputLabel
  
  h:outputLabel for=transStartDate
  h:outputText value=#{tb.tbStartDate}
   styleClass=Paginatorhighlight/
  /h:outputLabel
  
  h:outputLabel for=transStartTime
  h:outputText value=#{tb.tbStartTime}
   styleClass=Paginatorhighlight/
  /h:outputLabel
  
  h:outputLabel for=transEndDate
  h:outputText value=#{tb.tbEndDate}
   styleClass=Paginatorhighlight/
  /h:outputLabel
  
  h:outputLabel for=transEndTime
  h:outputText value=#{tb.tbEndTime}
   styleClass=Paginatorhighlight/
  /h:outputLabel
  
  h:outputLabel for=clientID
  h:outputText value=#{tb.tbClientID}
 styleClass=Paginator/
  /h:outputLabel
  
  h:outputLabel for=transFind
  h:outputText value=#{tb.tbFind} styleClass=Paginator/
  /h:outputLabel
  
  h:selectOneMenu
  id=transType
  required=true
  value=#{tbrowser.currentTransType}
  f:selectItems value=#{tbrowser.transType}/
  /h:selectOneMenu
  
  t:inputCalendar
  size=8
  id=transStartDate
  monthYearRowClass=yearMonthHeader
  weekRowClass=weekHeader
  currentDayCellClass=currentDayCell
  renderAsPopup=true
  popupTodayString=Today is
  popupWeekString=Wk
  renderPopupButtonAsImage=false
  required=true
  value=#{tbrowser.currentTransStartDate}
  helpText=MM/DD//
  
  h:selectOneMenu
  id=transStartTime
  required=true
  value=#{tbrowser.currentTransStartTime}
  f:selectItems value=#{tbrowser.transStartTime}/
  /h:selectOneMenu
  
  t:inputCalendar
  size=8
  id=transEndDate
  monthYearRowClass=yearMonthHeader
  weekRowClass=weekHeader
  currentDayCellClass=currentDayCell
  renderAsPopup=true
  popupTodayString=Today is
  popupWeekString=Wk
  renderPopupButtonAsImage=false
  required=true
  value=#{tbrowser.currentTransEndDate}
  helpText=MM/DD//
  
  h:selectOneMenu
  id=transEndTime
  required=true
  value=#{tbrowser.currentTransEndTime}
  f:selectItems value=#{tbrowser.transEndTime}/
  /h:selectOneMenu
  
  h:selectOneMenu
  id=clientID
  value=#{tbrowser.currentClientID}
  required=true
  f:selectItems value=#{tbrowser.tbClientID}/
  /h:selectOneMenu
  
  h:inputText id=transFind maxlength=20 size=20/
  
  h:panelGroup
  h:commandButton value=Search
   actionListener=#{tbrowser.transTypeSelected}/
  h:messages id=transTypeError styleClass=error/
  f:verbatim
  br
  /f:verbatim
  h:outputText 

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: Client Side Validation

2006-06-06 Thread Dave Brondsema
Cagatay's client side validators are at
http://jsf-comp.sourceforge.net/components/clientvalidators/index.html

Matthias Wessendorf wrote:
 Cagatay is about to adding something
 
 -Matthias
 
 On 6/6/06, Gregg Bolinger [EMAIL PROTECTED] wrote:
 I could have sworm MyFaces could do Client Side (Javascript)
 validation.  Am
 I wrong?  I've search the web and mailing lists and didn't fine anything.

 Thanks.

 Gregg

 
 


-- 
Dave Brondsema
Software Developer
Cornerstone University



signature.asc
Description: OpenPGP digital signature


sandbox.jar

2006-06-06 Thread Furer Alexander



Can someone post sandbox.jar that compatible with 
myfaces 1.1.3
Thanks


Re: JSF-basede application on jboss 4.0.2 fails miserably

2006-06-06 Thread Jeff Bischoff

Tomahawk 1.1.3? you mean the old nightly?

I don't understand why you need to modify jbossweb-tomcat55.sar at all. 
I have tested my JSF app with many versions of myfaces on many versions 
of Jboss4, and I never had to change any JBoss/tomcat libraries to make 
it work...


MyFaces 1.1.3 and Tomahawk 1.1.2 work splendidly with JBoss 4.0.2, if 
the required jar files are in /WEB-INF/lib


Regards,

Jeff Bischoff
Kenneth L Kurz  Assoc, Inc.

Tom Cordova wrote:

What happens if I have applications that use MyFaces 1.1.3  and Tomahawk
1.1.3 ?

I've copied myfaces-api-1.1.3.jar and myfaces-impl-1.1.3.jar into
jbossweb-tomcat55.sar, but what about the commons *.jar files?  Do they need
to be updated as well?

Tom
--
View this message in context: 
http://www.nabble.com/JSF-basede+application+on+jboss+4.0.2+fails+miserably-t569512.html#a4632196
Sent from the MyFaces - Users forum at Nabble.com.








RE: Load Testing JSF?

2006-06-06 Thread James Richards
I've been using the free version of TestMaker from pushtotest.com.  It has a 
feature where you can record your usage of, for example, a JSF web application 
and then replay that script as a load test.  I haven't done much load testing 
but it's straightforward in the testing tool.

The last time I tried out JMeter, it was just too much of a memory hog...has 
that improved in the last year?

Hope that helps,

James


-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED]
Sent: Tue 6/6/2006 11:35 AM
To: MyFaces Discussion
Subject: Re: Load Testing JSF?
 
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 AM
To: ''MyFaces Discussion''
Subject: Load Testing JSF?

Hi,

 

I am trying out jMeter with JSF - but not having much success so far. I
would 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





winmail.dat

RE: Load Testing JSF?

2006-06-06 Thread Yee CN









JMeter actually comes with a proxy server
that can sniff and record request parameters including cookies. I recorded a
simple session and tried playing back  but could not even get pass
through the login page yet. I will do a bit more digging tomorrow.



Regards,

Yee











From: Mert
Çalışkan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006
12:31 AM
To: MyFaces Discussion
Subject: Re: Load Testing JSF?







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 AM
To: ''MyFaces Discussion'' 
Subject: Load Testing JSF?

Hi,



I am trying out jMeter with JSF - but not having much success so far. I
would 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
















How do I use t:div to hide a component when a page loads, then display it on a h:commandButton event?

2006-06-06 Thread Todd Patrick



How do I use t:div to hide a component or components within the t:divwhen a page 
loads, then displaythecomponent(s) 
within the t:divon a h:commandButton event?

Thanks,

--Todd


Passing Object to Page

2006-06-06 Thread Gregg Bolinger
Currently, I know how to pass an object by value binding it to the session.FacesContext context = FacesContext.getCurrentInstance();Application application = context.getApplication();application.createValueBinding
(#{sessionScope.someObject}).setValue(context, someObject); I then access this property from my bean via the managed-property facility in the faces-config.A few of my pages act as both an Add and Modify page. Using the above technique, when I come to the page as Modify, everything is fine, but when I come back as Add, I still have the object in the session and so it displays old data.
Is there a way to pass an object to a page that is just in the request scope similar to the above solution?Thanks.


Re: Client Side Validation

2006-06-06 Thread Cagatay Civici
Hi,Nowadays I become a true JSF Client Side Validaton monster.I am very close to finish my beta work on the extended validators in tomahawk. The good thing is that only thing needed to turn on the client validation is to set a context param ENABLE_CLIENT_VALIDATION to true. There is no need to change anything on pages built with myfaces.
Also today as a result of a demand, I've integrated shale's commons validators to the project I'm working for. I've changed the renderers of h:message components to get rid of the annoying popups. Doing so I was able to display the validation messages in place with h:message and h:messages.
In addition I'm about to release the latest version of my own library for client validation.Do I sound like a client validation lunatic?Cheers,Cagatay
On 6/6/06, Dave Brondsema [EMAIL PROTECTED] wrote:
Cagatay's client side validators are athttp://jsf-comp.sourceforge.net/components/clientvalidators/index.htmlMatthias Wessendorf wrote:
 Cagatay is about to adding something -Matthias On 6/6/06, Gregg Bolinger [EMAIL PROTECTED] wrote: I could have sworm MyFaces could do Client Side (_javascript_)
 validation.Am I wrong?I've search the web and mailing lists and didn't fine anything. Thanks. Gregg--
Dave BrondsemaSoftware DeveloperCornerstone University


Re: Client Side Validation

2006-06-06 Thread Matthias Wessendorf

Do I sound like a client validation lunatic?


you do :-)

And no popup is very cool.

can you send an announcement to our dev-list, when the beta is available ?

-Matthias


Re: Is there an example of using tree2 with data from a database?

2006-06-06 Thread Andrew Robinson

I used the alternate from that WIKI and it is working great for me

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

See this wiki entry

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

You'll find two different methods to load tree content while opening
its nodes, with examples. I personally suggest you the second one
(Alternative Tree2 Lazy Loading Method...by jtmille3).

Cosma


2006/6/5, Todd Patrick [EMAIL PROTECTED]:
 I looked in the mailing list archive, there are a lot of discussions,
 but there are no examples.

 The closest discussion is listed below between Sean and Stefan back on
 Nov 22, 2005.

 Honestly, I haven't found one example.

 I'd appreciate any thoughts or pointers, whatever at this point.

 Thanks,

 --Todd



 Please post your MyFaces questions to the user list.  There are lots
 of people who can help you with this issue there.

 sean

 -- Forwarded message --
 From: Stefan Vargocko [EMAIL PROTECTED]
 Date: Nov 22, 2005 3:28 AM
 Subject: Changing content of the tree2
 To: [EMAIL PROTECTED]



 Hi Sean,
 I am using tree2. I am very satisfied with it, it's very nice and
 allows a lot of control. But I have one problem. I want to change
 content of the tree when some node is expanded. In general, I want to
 load children for node which should be expanded (so there is a click
 on a +). Is there any possibility to do this?
 Thank You for help.
 Stefan




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
 Matthias Wessendorf
 Sent: Monday, June 05, 2006 10:09 AM
 To: MyFaces Discussion
 Subject: Re: Is there an example of using tree2 with data from a
 database?

 can you search the archive?
 Tree2 is very popular and question regarding loading data have already
 been asked.

 Thx,
 -Matthias

 On 6/5/06, Todd Patrick [EMAIL PROTECTED] wrote:
 
 
  Is there an example of using tree2 with data from a database?
 
  Example, I have the following tree:
 
  + A
  + B
  + C
 
  When I expand A, I need to send A as a parameter to a public
  method in my backing bean, which calls a method in a POJO that returns

  the record set 1, 2, 3.
 
 
  - A
- 1
- 2
- 3
  +B
  +C
 
  The SQL in the POJO looks similar to:
 
  SELECT child_value, child_label
  FROM child_table
  WHERE parent = A
 
 
  Thoughts, suggestions or examples are greatly appreciated.
 
  Thanks,
 
  --Todd
 
 


 --
 Matthias Wessendorf
 Aechterhoek 18
 48282 Emsdetten
 blog: http://jroller.com/page/mwessendorf
 mail: mwessendorf-at-gmail-dot-com




Re: Client Side Validation

2006-06-06 Thread Mario Ivankovits
Hi Cagatay!
 Do I sound like a client validation lunatic?
Sure, you do ;-)

When can we take it over to MyFaces? :-D
What about the licensing, is it all under ASL? If not PLEASE prepare it
so before contribute it ;-)

Ciao,
Mario



RE: Is there an example of using tree2 with data from a database?

2006-06-06 Thread Todd Patrick
Andrew: I'm looking at the alternate as well.

I think I have an idea of what needs to be done.

Thanks,

--Todd 

-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 06, 2006 12:56 PM
To: MyFaces Discussion
Subject: Re: Is there an example of using tree2 with data from a
database?

I used the alternate from that WIKI and it is working great for me

On 6/6/06, Cosma Colanicchia [EMAIL PROTECTED] wrote:
 See this wiki entry

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

 You'll find two different methods to load tree content while opening 
 its nodes, with examples. I personally suggest you the second one 
 (Alternative Tree2 Lazy Loading Method...by jtmille3).

 Cosma


 2006/6/5, Todd Patrick [EMAIL PROTECTED]:
  I looked in the mailing list archive, there are a lot of 
  discussions, but there are no examples.
 
  The closest discussion is listed below between Sean and Stefan back 
  on Nov 22, 2005.
 
  Honestly, I haven't found one example.
 
  I'd appreciate any thoughts or pointers, whatever at this point.
 
  Thanks,
 
  --Todd
 
 
 
  Please post your MyFaces questions to the user list.  There are 
  lots of people who can help you with this issue there.
 
  sean
 
  -- Forwarded message --
  From: Stefan Vargocko [EMAIL PROTECTED]
  Date: Nov 22, 2005 3:28 AM
  Subject: Changing content of the tree2
  To: [EMAIL PROTECTED]
 
 
 
  Hi Sean,
  I am using tree2. I am very satisfied with it, it's very nice and 
  allows a lot of control. But I have one problem. I want to change 
  content of the tree when some node is expanded. In general, I want 
  to load children for node which should be expanded (so there is a 
  click on a +). Is there any possibility to do this?
  Thank You for help.
  Stefan
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

  Of Matthias Wessendorf
  Sent: Monday, June 05, 2006 10:09 AM
  To: MyFaces Discussion
  Subject: Re: Is there an example of using tree2 with data from a 
  database?
 
  can you search the archive?
  Tree2 is very popular and question regarding loading data have 
  already been asked.
 
  Thx,
  -Matthias
 
  On 6/5/06, Todd Patrick [EMAIL PROTECTED] wrote:
  
  
   Is there an example of using tree2 with data from a database?
  
   Example, I have the following tree:
  
   + A
   + B
   + C
  
   When I expand A, I need to send A as a parameter to a public 
   method in my backing bean, which calls a method in a POJO that 
   returns
 
   the record set 1, 2, 3.
  
  
   - A
 - 1
 - 2
 - 3
   +B
   +C
  
   The SQL in the POJO looks similar to:
  
   SELECT child_value, child_label
   FROM child_table
   WHERE parent = A
  
  
   Thoughts, suggestions or examples are greatly appreciated.
  
   Thanks,
  
   --Todd
  
  
 
 
  --
  Matthias Wessendorf
  Aechterhoek 18
  48282 Emsdetten
  blog: http://jroller.com/page/mwessendorf
  mail: mwessendorf-at-gmail-dot-com
 



Re: Client Side Validation

2006-06-06 Thread Cagatay Civici
Hi Matthias,With beta I actually mean the some of the validators like required validator, email validator and etc.. The rest of the validation becomes trivial after the infrastructure is completed.Sure, I'll send an announcement to the dev list.
Regards,Cagatay The Lunatic CiviciOn 6/6/06, Matthias Wessendorf [EMAIL PROTECTED]
 wrote: Do I sound like a client validation lunatic?you do :-)
And no popup is very cool.can you send an announcement to our dev-list, when the beta is available ?-Matthias


Re: How do I use t:div to hide a component when a page loads, then display it on a h:commandButton event?

2006-06-06 Thread Andrew Robinson

t:div rendered=#{mybean.myProp}
This is optionally rendered
/t:div

t:commandButton value=click me actionListener=#{mybean.toggle} /

@Name(mybean)
public class MyBean
{
 private boolean myProp;
 public boolean isMyProp() { return myProp; }
 public void setMyProp(boolean myProp) { this.myProp = myProp; }
 public void toggle(ActionEvent evt) { myProp = !myProp; }
}

On 6/6/06, Todd Patrick [EMAIL PROTECTED] wrote:



How do I use t:div to hide a component or components within the t:div when a
page loads, then display the component(s) within the t:div on a
h:commandButton event?

Thanks,

--Todd


Re: Client Side Validation

2006-06-06 Thread Cagatay Civici
Hi again,Sure it's under ASL Mario, I'm just extending to the tomahawk.Cagatay,On 6/6/06, Cagatay Civici 
[EMAIL PROTECTED] wrote:Hi Matthias,With beta I actually mean the some of the validators like required validator, email validator and etc.. The rest of the validation becomes trivial after the infrastructure is completed.
Sure, I'll send an announcement to the dev list.
Regards,Cagatay The Lunatic CiviciOn 6/6/06, Matthias Wessendorf
 [EMAIL PROTECTED]
 wrote: Do I sound like a client validation lunatic?you do :-)

And no popup is very cool.can you send an announcement to our dev-list, when the beta is available ?-Matthias




RE: How do I use t:div to hide a component when a page loads, then display it on a h:commandButton event?

2006-06-06 Thread Todd Patrick
Andrew: That is perfect.

With the default boolean value being false, this worked great.

Thank you.

--Todd

-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 06, 2006 1:01 PM
To: MyFaces Discussion
Subject: Re: How do I use t:div to hide a component when a page loads,
then display it on a h:commandButton event?

t:div rendered=#{mybean.myProp}
This is optionally rendered
/t:div

t:commandButton value=click me actionListener=#{mybean.toggle} /

@Name(mybean)
public class MyBean
{
  private boolean myProp;
  public boolean isMyProp() { return myProp; }
  public void setMyProp(boolean myProp) { this.myProp = myProp; }
  public void toggle(ActionEvent evt) { myProp = !myProp; } }

On 6/6/06, Todd Patrick [EMAIL PROTECTED] wrote:


 How do I use t:div to hide a component or components within the t:div 
 when a page loads, then display the component(s) within the t:div on a

 h:commandButton event?

 Thanks,

 --Todd


Re: Help with Navigation rule with parameters

2006-06-06 Thread Peter Henderson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jonathan Harley wrote:
 Cosma Colanicchia wrote:
 Reading that wiki post:

For these reasons [...] one should consider using a custom
 Navigation Handler adding the following capabilities:

 I've understood that you have to code and plug your custom navigation
 handler to inplement this sort of navigation logic. I've never seen
 using EL expressions in to-view-id elements, anyone know if this is
 supported by the standard JSF nav. handler?
 
 No, it isn't, but it's very easy to do. See for example
 http://forum.java.sun.com/thread.jspa?threadID=492721messageID=2318174
 
 
 Jon.
Thanks for that Jon


Based on the info in that thread and the linked articles I've knocked up
my own Navigation handler.
The trouble is, I dont seem to be able to get the to-view-id part of
the navigation rule in order to fix the parameters.


Here is my Navigation handler.
package com.starjar.facestest;

import javax.faces.application.NavigationHandler;
import javax.faces.context.FacesContext;

/**
 * Based on
 * http://forum.java.sun.com/thread.jspa?threadID=492721messageID=2318174
 *
 *
 * @author peter
 */
public class ParameterNavigationHandler extends NavigationHandler {

NavigationHandler _base;

/** Creates a new instance of ParameterNavigationHandler */
public ParameterNavigationHandler(NavigationHandler base) {
super();
System.out.println(===IN ParameterNavigationHandler ctor =);
this._base = base;
}

public void handleNavigation(FacesContext fc, String actionMethod,
String actionName) {
System.out.println(IN ParameterNavigationHandler =);

_base.handleNavigation(fc, actionMethod, actionName);

String viewId = fc.getViewRoot().getViewId();
System.out.println(ORIGINAL VIEW  + viewId +
 actionMethod  + actionMethod +
 actionName  + actionName );
if ((viewId.indexOf(#{) != -1) 
(viewId.indexOf(#{)  viewId.indexOf('}')))
{
String bviewId =
(String)fc.getApplication().createValueBinding(viewId).getValue(fc);
System.out.println(NEW VIEW id  + bviewId );
if (bviewId != null) {
fc.getViewRoot().setViewId(bviewId);
} else {
// you can throw the exception here
}
}
}
}


Values of fields
viewId = /secure/company/list.jsp
actionMethod = #{quickNewCompanyBean.create}
actionName = view-company

I was expecting one of these value to be the to-view-id
/secure/company/view.jsp?companyID=#{quickNewCompanyBean.companyID}


Im no JSF expert and feel completly out of my depth here.


Cheers
Peter Henderson


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEhc8HaeMEhGmZg50RAuBVAJ90lVNe5QjNRjOiHw3cAs6a1o2SnACeKgtx
u8IAWTxZ4JVD/2HjvvtRdtA=
=gxLN
-END PGP SIGNATURE-


Re: Client Side Validation

2006-06-06 Thread Mario Ivankovits
Hi Cagatay!
 Sure it's under ASL Mario, I'm just extending to the tomahawk.
Great, just, could you please place it in tomahawk-sandbox at first.
A short discussion on myfaces-dev about this topic brought up
immediately additional ideas which we have to take into account then.


Thanks!
Ciao,
Mario



Re: Load Testing JSF?

2006-06-06 Thread Mirek B.

Hi,

I've done some testing on our JSF app with JMeter. My basic setup was 
following:

- record my navigation through pages with HTTP Proxy
- move the first two requests (i.e. the welcome screen and subsequent 
POST to the login page) inside an Only Once Controller
- add an HTTP Cookie Manager inside the Thread Group so it will 
remember session id

- listeners and visualisers as needed

regards,
-- mirek

Yee CN wrote:
JMeter actually comes with a proxy server that can sniff and record 
request parameters including cookies. I recorded a simple session and 
tried playing back – but could not even get pass through the login page 
yet. I will do a bit more digging tomorrow.


 


Regards,

Yee

 




*From:* Mert Çalışkan [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, June 07, 2006 12:31 AM
*To:* MyFaces Discussion
*Subject:* Re: Load Testing JSF?

 

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] mailto:[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] mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 6, 2006 10:49 AM
To: ''MyFaces Discussion''
Subject: Load Testing JSF?

Hi,



I am trying out jMeter with JSF - but not having much success so far. I
would 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: Client Side Validation

2006-06-06 Thread Cagatay Civici
Hi Mario,tomahawk-sandbox?, yes, that was what I thought at first actually.I've read the discussion on the dev list from nabble, let's see how it fits and then the discussion can continue after seeing some stuff in action rather than in theory.
Next week hopefully, I'll be presenting the results.Regards,Cagataywww.jroller.com/page/cagataycivici
On 6/6/06, Mario Ivankovits [EMAIL PROTECTED] wrote:
Hi Cagatay! Sure it's under ASL Mario, I'm just extending to the tomahawk.Great, just, could you please place it in tomahawk-sandbox at first.A short discussion on myfaces-dev about this topic brought up
immediately additional ideas which we have to take into account then.Thanks!Ciao,Mario


Re: Client Side Validation

2006-06-06 Thread Matthias Wessendorf

On 6/6/06, Mario Ivankovits [EMAIL PROTECTED] wrote:

Hi Cagatay!
 Sure it's under ASL Mario, I'm just extending to the tomahawk.
Great, just, could you please place it in tomahawk-sandbox at first.


Is there any IP issue here to solve?

-Matthias


A short discussion on myfaces-dev about this topic brought up
immediately additional ideas which we have to take into account then.


Thanks!
Ciao,
Mario





--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


RE: Load Testing JSF?

2006-06-06 Thread Jesse Alexander \(KSFD 121\)



I did it exactly in that way... worked 
sweetly...

regards
Alexander

  
  
  From: Yee CN [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, June 06, 2006 7:00 PMTo: 'MyFaces 
  Discussion'Subject: RE: Load Testing JSF?
  
  
  JMeter actually comes 
  with a proxy server that can sniff and record request parameters including 
  cookies. I recorded a simple session and tried playing back  but could not 
  even get pass through the login page yet. I will do a bit more digging 
  tomorrow.
  
  Regards,
  Yee
  
  
  
  
  
  From: Mert 
  Çalışkan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 12:31 
  AMTo: MyFaces 
  DiscussionSubject: Re: Load 
  Testing JSF?
  
  
  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
  


navigation rule

2006-06-06 Thread L Frohman
In the to-view-id tag in faces-config.xml navigation, myfaces always
puts a / in front and adds .jsp at the end of any urls, if those are not
already there. Is there a way to prevent this behaviour? I want to
navigate to the acegi security filter, 
 
to-view-idj_acegi_security_check/to-view-id
 
but I get an error /j_acegi_security_check.jsp not found.
 
Thanks,
Lance



RE: Load Testing JSF?

2006-06-06 Thread James Richards
I had a problem in HTMLUnit when some JavaScript libraries were breaking 
[function was not found] so check to see if there are any javascript errors in 
the console when loading the pages via a browser...

Hope that helps,

James



-Original Message-
From: Jesse Alexander (KSFD 121) [mailto:[EMAIL PROTECTED]
Sent: Tue 6/6/2006 5:16 PM
To: MyFaces Discussion
Subject: RE: Load Testing JSF?
 
I did it exactly in that way... worked sweetly...
 
regards
Alexander




From: Yee CN [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 06, 2006 7:00 PM
To: 'MyFaces Discussion'
Subject: RE: Load Testing JSF?



JMeter actually comes with a proxy server that can sniff and record 
request parameters including cookies. I recorded a simple session and tried 
playing back - but could not even get pass through the login page yet. I will 
do a bit more digging tomorrow.

 

Regards,

Yee

 





From: Mert Çaliskan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 12:31 AM
To: MyFaces Discussion
Subject: Re: Load Testing JSF?

 

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 AM
To: ''MyFaces Discussion'' 
Subject: Load Testing JSF?

Hi,



I am trying out jMeter with JSF - but not having much success so far. I
would 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





 


winmail.dat

Re: SERIOUS BUG!!!!!!! Re: commandLinks don't work on Tomcat 5.5.17

2006-06-06 Thread Sean Schofield

I'm using commandLinks in TC 5.5 right now.  Try deploying the simple
examples to a default TC 5.5 install.  You will find that the
commandLinks work (at least some of them.)

Sean

On 6/6/06, Murray Brandon [EMAIL PROTECTED] wrote:

Do you have a properly resolved processAction method on your bean?  If
you don't have this properly resolving, you will not get a commandLink
rendering, (just text? cant remember).

I find it difficult to believe commandLink has a bug all of a sudden.
It's such a simple component and it works fine on my Tomcat 5.5.15
(which I use for testing cos it's so blindingly fast).  Which version of
Myfaces?  The latest?  Are you using a nightly build?

Let me know what you find.

Your bean must implement:
ie. public void processAction(ActionEvent e) throws
AbortProcessingException

An example of my commandLink is below (am using the superb facelets too,
but you get the gist):

h:commandLink actionListener=#{mybean.processAction}
disabled=#{disabled} type=submit rendered=#{rendered}
c:if test=${not empty imageUrl and empty
mouseoverImageUrl}
t:graphicImage value=${imageUrl}
styleClass=noborder /
/c:if
c:if test=${not empty imageUrl and not empty
mouseoverImageUrl}
t:graphicImage value=${imageUrl}
styleClass=noborder

onmouseover=auiChangeImage(this,'${mouseoverImageUrl}')
onmouseout=auiChangeImage(this,'${imageUrl}') /
/c:if
c:if test=${not empty text}
h:outputText value=${text} /
/c:if
/h:commandLink

Mike Duffy wrote:
 This did not work for me.  The fact that the command link does not work is a 
SERIOUS BUG in
 MyFaces.  Any suggestions on the best way to report this bug?

 Mike


 --- Garner Shawn [EMAIL PROTECTED] wrote:


 I got my commandLinks to work by adding the JSP-API.jar that came with
 facelets to my /web-inf/lib directory instead of the one in the
 tomcat/commons/lib directory.
 However this gives me another problem where my JSP forward isn't working.
 Seems to be some incompatibilty somewhere.
 I'm getting fed up and am going to back to Struts real soon.

 Shawn




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






Jean-Claude Pace is out of the office.

2006-06-06 Thread JeanClaude . Pace

I will be out of the office starting  07/06/2006 and will not return until
12/06/2006.

I will respond to your message when I return. For urgent issues please
contact Reuben Muscat or Roderick Farrugia.



Re: Jean-Claude Pace is out of the office.

2006-06-06 Thread Murray Brandon

Oh no, a whole week of these ;-)

[EMAIL PROTECTED] wrote:

I will be out of the office starting  07/06/2006 and will not return until
12/06/2006.

I will respond to your message when I return. For urgent issues please
contact Reuben Muscat or Roderick Farrugia.
  


Re: TreeTable example downloaded from SVN doesn't collapse or expand.

2006-06-06 Thread Matthias Wessendorf

Ok,

create jira ticket on my own, since I could reproduce it ([1]).

-Matthias

[1] http://issues.apache.org/jira/browse/TOMAHAWK-474

On 6/6/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:

ok,

that might be a problem of treeTable and the RI
I tryed w/ MyFaces and it worked.

Will check the RI again.

In meantime, can you create a ticket (JIRA) on that ?

-Matthias

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

 Similar problem is nagging me for several days. Today I tried to deploy tree
 table component along with myfaces jsf implementation in sun app server. But
 I was unable to expand  collapse the node. To make sure it was not using
 sun jsf ri I deployed the same application in websphere but result was still
 the same. This is a genuine error  needs fixing.

 --
 View this message in context: 
http://www.nabble.com/RE%3A-TreeTable-example-downloaded-from-SVN-doesn%27t-collapse-or-expand.-t1741599.html#a4735198
 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




--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


obtain reference to h:outputLabel from for UIComponent

2006-06-06 Thread tony k

i'm working with version of JSF shipped with websphere 5.1.2 which doesn't
include the field label name in default conversion/validation messages (as
opposed to MyFaces which does).

wondering if i can obtain a reference to the outputLabel associated with a
validate/conversion target from UIComponent reference passed to a validate()
method forinstance.

for example:

h:outputLabel for=firstName value=First Name/
h:inputText id=firstName value= #{aBb.firstName}
validator=#{aBb.validator}/

i want to include the label value First Name in any validation error
messages that might occur.

any info appreciated.
--
View this message in context: 
http://www.nabble.com/obtain-reference-to-h%3AoutputLabel-from-%22for%22-UIComponent-t1745526.html#a4744664
Sent from the MyFaces - Users forum at Nabble.com.



sandbox with facelets

2006-06-06 Thread StanislavZ

Hello everybody !
Please help me if you can.
I want to use with facelets sanbox components:
  s:inputSuggestAjax id=sdfsdf maxSuggestedItems=15

suggestedItemsMethod=#{StsListDicAdapter.getL} 
value=#{StsListDicAdapter.wstr}/
Also i added some changes to tomahawk.taglib.xml:
tag
tag-nameinputSuggestAjax/tag-name
component
   
component-typeorg.apache.myfaces.custom.suggestajax.inputsuggestajax.InputSuggestAjaxTag/component-type
/component
  /tag
but error is:
2006-06-07 09:21:02,386 INFO  [STDOUT] 07.06.2006 9:21:02
com.sun.facelets.FaceletViewHandler handleRenderException
SEVERE: Error Rendering View[/mainMainfilter.jsp]
javax.el.ELException: /mainMainfilter.jsp: Bean:
sts.regions.data.StsListDicAdapter, property: getL
at com.sun.facelets.compiler.UIText.encodeBegin(UIText.java:51)
at
org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:433)
at
org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:216)

What I do wrong ? And what I must to do ?
With best regards Stanislav Zabudkin

--
View this message in context: 
http://www.nabble.com/sandbox-with-facelets-t1745618.html#a4744955
Sent from the MyFaces - Users forum at Nabble.com.



Re: Client Side Validation

2006-06-06 Thread Mario Ivankovits
Hi!

 Is there any IP issue here to solve?
(IP - intellectual property, for those not knowing whats meant here ;-) )

Due to the size of this contribution (its not only a patch) a CCLA is
required.
According to http://people.apache.org/~jim/committers.html Cagaty is
already filed.


Ciao,
Mario



Re: Load Testing JSF?

2006-06-06 Thread Vesa Lindfors
HiWe have made also successfully some JMeter testing. Only harder thing for me was collecting from response page some JSF parameters that will be needed in next request. With parameters I mean jsf_tree_64 and jsf_state_64 in case of client side state saving or jsf_sequence in case of server side state saving. 
For that I found Regular _expression_ Extractor to be very helpfully (through selecting Add  Post Processors  Regular _expression_ Extractor). Then just set Regular _expression_ to value that you are seeking from returning page like: id=jsf_tree_64 value=(.+?) and giving some Reference name to be used in following request.
-- VLi ---


How to make reset command button clear all form fields

2006-06-06 Thread Anthony Hong

Hi all,

Jsf has a command button with type=reset that can reset current form
components to the latest state.

How can I make this reset button to clear all fields with empty value
under this form.
Is it the only way I have to write a action method and clear fields in
page bean one by one?

And Can I re-new a page bean when I required? If can, how to achieve this

--

Anthony Hong