RE: Frustrated with the same old ExtensionsFilter issue.

2006-11-07 Thread Todd Patrick
I believe I have fixed this by adding:

filter-mapping
filter-nameextensionsFilter/filter-name
url-pattern/faces/myFacesExtensionResource/*/url-pattern
/filter-mapping

--Todd

-Original Message-
From: Todd Patrick [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 11:15 AM
To: users@myfaces.apache.org
Subject: Frustrated with the same old ExtensionsFilter issue.

I can't get past this (The full stack track is below.):

java.lang.IllegalStateException: ExtensionsFilter not correctly
configured. Resource mapping missing. Resources cant be delivered.


I have an index.jsp page with the following:

% response.sendRedirect(request.getContextPath() + /login/login.jsf);
%


The full web.xml is attached in the web.zip file.

In the web.xml, I have the following snippet after the Faces Servlet
definition:

filter
filter-nameextensionsFilter/filter-name
 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-
class
init-param
descriptionSet the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
/description
param-nameuploadMaxFileSize/param-name
param-value20m/param-value
/init-param
init-param
descriptionSet the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.

Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
/description
param-nameuploadThresholdSize/param-name
param-value100k/param-value
/init-param
/filter
filter-mapping
filter-nameextensionsFilter/filter-name
url-pattern*.jsf/url-pattern
/filter-mapping

I copied this directly from the Tomcat 1.1.3 examples and I am using
MyFaces and RI - specifically JSF_1.1.

This is very frustrating and I greatly appreciate any help.

Thanks,

--Todd


java.lang.IllegalStateException: ExtensionsFilter not correctly
configured. Resource mapping missing. Resources cant be delivered.
Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html

org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtension
sFilterMissing(AddResourceFactory.java:371)

org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironme
nt(AddResourceFactory.java:352)

org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(Ad
dResourceFactory.java:288)

org.apache.myfaces.custom.document.DocumentHeadRenderer.writeBeforeEnd(D
ocumentHeadRenderer.java:51)

org.apache.myfaces.custom.document.AbstractDocumentRenderer.encodeEnd(Ab
stractDocumentRenderer.java:72)

javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:712
)

javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:616)

javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:539)

org.apache.jsp.login.login_jsp._jspx_meth_t_documentHead_0(login_jsp.jav
a:224)

org.apache.jsp.login.login_jsp._jspx_meth_t_document_0(login_jsp.java:18
6)

org.apache.jsp.login.login_jsp._jspx_meth_f_view_0(login_jsp.java:157)
org.apache.jsp.login.login_jsp._jspService(login_jsp.java:125)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.j
ava:322)

com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.jav
a:147)

com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.
java:87)

com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)

com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)

org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFil
ter.java:144)
jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:118)



-
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized use, disclosure or distribution is prohibited. If you
are not the intended recipient, please contact the sender by reply email
and destroy all copies of the original message.


Why do I lose my resources (gif, css, jpg) after I add the ExtensionsFilter?

2006-11-07 Thread Todd Patrick
None of my style sheets or resources work now that I added the
ExtensionsFilter.

I have the following in my page:

t:stylesheet path=/resources/login.css/

But the style sheet is never rendered. When I look at the source of the
page, I see:

link rel=stylesheet type=text/css href=/correct
context/resources/login.css /

Thoughts on why the ExtensionsFilter would break my resources?

Thanks,

--Todd

-
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact
the sender by reply email and destroy all copies of the original
message.



RE: Tomahawk: Tree2: TreeNodeBase.getChildCount() question - Lazy Loading issue.

2006-07-09 Thread Todd Patrick
In your example, you have the FolderNode as an inner class, does it have
to be?

Couldn't I have the following separate class files:

FolderNode
FileNode
BaseTreeNode

In Step 2: create the directory node (inner class) - isn't this the same
as the FolderNode example at the bottom of your blog, except it is
specific to your application?

Thanks,

--Todd 

-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 07, 2006 4:17 PM
To: MyFaces Discussion
Subject: Re: Tomahawk: Tree2: TreeNodeBase.getChildCount() question -
Lazy Loading issue.

The magic of my code is just the fact that the base node reports 1
for the child count *only if* the node has not loaded the children yet
and the node is not expanded. That is the big gotcha. If you are not
using TreeModelBase or the default TreeState that it comes with that
base tree node from my blog will not work. My code is also using 1.1.2
but I don't think that should matter.

Your repeated A is because you reported a node count of 1, but
returned more or less nodes than 1 as children (that is why I had to add
the expanded code to my node).

What problems were you having with my code? I can try to help that way,
or if it doesn't seem to be working out, I can try during my free time
to build an example ZIP for you with source that does the lazy loading.

Were you getting errors, or was the tree just not working?

BTW - I am using TreeModelBase and not changing the expansion state of
the model (no overrides or customizations).

-Andrew

On 7/7/06, Todd Patrick [EMAIL PROTECTED] wrote:
 I have been unsuccessful in implementing the Lazy Loading technique 
 that was described in the wiki or as described using AjaxAnywhere by 
 Andrew R.

 By all means, this is my own fault and no one else, I greatly 
 appreciate everyone's help!

 Therefore, I am at this point: I really just need the plus sign
 navigation displayed for every node, no matter if the node has a child

 or not.

 A user that clicks on the plus sign will run a server ActionEvent 
 that will get the children for that node.

 If there is no children, do nothing.

 I went back and studied the following comment on Andrew R. blog: The
 tree2 renderer looks only at the getChildCount method, not the 
 getChildren method when rendering. Meaning that if getChildCount 
 should return 0, getChildren will never be called unless the node is
expanded.

 Ok, good... now I should just be able to override the getChildCount 
 method if I extend the TreeNodeBase class, such as:

 public int getChildCount() {
 return 1;
 }

 So, in combination with the wiki example Alternative Tree2 Lazy 
 Loading Method...by jtmille3:

 public class LazyTreeNode extends TreeNodeBase {

 private static final long serialVersionUID = 
 -6870203633601493362L;

 public LazyTreeNode() {
 }

 public LazyTreeNode(String type, String description, boolean
 leaf) {
 super(type, description, leaf);
 }

 public LazyTreeNode(String type, String description, String 
 identifier, boolean leaf) {
 super(type, description, identifier, leaf);
 }

   public int getChildCount() {
   return 1;
   }

 public List getChildren() {
  // if there are no children, try and retrieve them
 if (super.getChildren().size() == 0) {
  super.getChildren().add(new 
 LazyTreeNode(document, + id,  + id,false));
 }

 return super.getChildren();
 }
 }

 This doesn't work. What I end up with is the parent value repeated 
 such
 as:

 - A
 |_ A
 |_ A
 |_ A

 Instead, I should have:

 - A
 |_ B
 |_ C
 |_ D

 The way I build my tree children is in a *for* loop in the following
 method:

  public void getTreeTransactBranch(String _transactID, TreeNode
 _transactNode) throws NamingException{
 InitialContext ctx = new InitialContext();
 DataSource ds = (javax.sql.DataSource) 
 ctx.lookup(jdbc/__Pool);
 Connection con;
 List TransactRow treeBranch = new LinkedList();

 try {
 con = ds.getConnection();
 try {
 TransactRow tree = new TransactRow();
 treeBranch = tree.selectByParentID(con, _transactID);

 for (TransactRow row : treeBranch) {

childTransactLeafLabel.append(row.getXactTypeID());
 childTransactLeafLabel.append(spacer);
 childTransactLeafLabel.append(row.getName());
 childTransactLeafLabel.append(spacer);

 childTransactLeafLabel.append(this.getDuration(row.getTCreated()));
 _transactNode.getChildren().add(new
 LazyTreeNode(transactions, childTransactLeafLabel.toString(),
 row.getTransactID(), false));
 childTransactLeafLabel.delete(0, 
 childTransactLeafLabel.length());
 }

 } catch

Tomahawk: Tree2: TreeNodeBase.getChildCount() question - Lazy Loading issue.

2006-07-07 Thread Todd Patrick
I have been unsuccessful in implementing the Lazy Loading technique that
was described in the wiki or as described using AjaxAnywhere by Andrew
R.

By all means, this is my own fault and no one else, I greatly
appreciate everyone's help!

Therefore, I am at this point: I really just need the plus sign
navigation displayed for every node, no matter if the node has a child
or not.

A user that clicks on the plus sign will run a server ActionEvent that
will get the children for that node.

If there is no children, do nothing.

I went back and studied the following comment on Andrew R. blog: The
tree2 renderer looks only at the getChildCount method, not the
getChildren method when rendering. Meaning that if getChildCount should
return 0, getChildren will never be called unless the node is expanded.

Ok, good... now I should just be able to override the getChildCount
method if I extend the TreeNodeBase class, such as:

public int getChildCount() {
return 1;
}

So, in combination with the wiki example Alternative Tree2 Lazy Loading
Method...by jtmille3:

public class LazyTreeNode extends TreeNodeBase {

private static final long serialVersionUID =
-6870203633601493362L;

public LazyTreeNode() {
}

public LazyTreeNode(String type, String description, boolean
leaf) {
super(type, description, leaf);
}

public LazyTreeNode(String type, String description, String
identifier, boolean leaf) {
super(type, description, identifier, leaf);
}

  public int getChildCount() {
  return 1;
  }

public List getChildren() {
 // if there are no children, try and retrieve them
if (super.getChildren().size() == 0) {
 super.getChildren().add(new
LazyTreeNode(document, + id,  + id,false));
}

return super.getChildren();
}
}

This doesn't work. What I end up with is the parent value repeated such
as:

- A
|_ A
|_ A
|_ A

Instead, I should have:

- A
|_ B
|_ C
|_ D

The way I build my tree children is in a *for* loop in the following
method:

 public void getTreeTransactBranch(String _transactID, TreeNode
_transactNode) throws NamingException{
InitialContext ctx = new InitialContext();
DataSource ds = (javax.sql.DataSource)
ctx.lookup(jdbc/__Pool);
Connection con;
List TransactRow treeBranch = new LinkedList();

try {
con = ds.getConnection();
try {
TransactRow tree = new TransactRow();
treeBranch = tree.selectByParentID(con, _transactID);

for (TransactRow row : treeBranch) {
childTransactLeafLabel.append(row.getXactTypeID());
childTransactLeafLabel.append(spacer);
childTransactLeafLabel.append(row.getName());
childTransactLeafLabel.append(spacer);
 
childTransactLeafLabel.append(this.getDuration(row.getTCreated()));
_transactNode.getChildren().add(new
LazyTreeNode(transactions, childTransactLeafLabel.toString(),
row.getTransactID(), false));
childTransactLeafLabel.delete(0,
childTransactLeafLabel.length());
}

} catch (SQLException ex) {
ex.printStackTrace();
}
con.close();
} catch (SQLException ex) {
ex.printStackTrace();
}
}

When I build my children, I thought the values would be from within the
*for* loop.

I'd appreciate any thoughts or suggestions.

Thanks,

--Todd


RE: Tomahawk: Tree2: TreeNodeBase.getChildCount() question - Lazy Loading issue.

2006-07-07 Thread Todd Patrick
The error I received was NullPointerExceptions when I tried to expand
the tree.

Again, I believe this is all my issue due to how I am creating the
children. I tried to use TreeModelBase, but I am having a hard time
modifying my POJOs to pass in the model and parent parameters that you
have in the TreeModelBase constructor.

I wouldn't worry about creating an example - this is an issue on my end.
However your gesture is greatly appreciated.

I am going to spend a lot of time this weekend working on this issue.
This is a critical issue with my project.

Thanks,

--Todd



-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 07, 2006 4:17 PM
To: MyFaces Discussion
Subject: Re: Tomahawk: Tree2: TreeNodeBase.getChildCount() question -
Lazy Loading issue.

The magic of my code is just the fact that the base node reports 1
for the child count *only if* the node has not loaded the children yet
and the node is not expanded. That is the big gotcha. If you are not
using TreeModelBase or the default TreeState that it comes with that
base tree node from my blog will not work. My code is also using 1.1.2
but I don't think that should matter.

Your repeated A is because you reported a node count of 1, but
returned more or less nodes than 1 as children (that is why I had to add
the expanded code to my node).

What problems were you having with my code? I can try to help that way,
or if it doesn't seem to be working out, I can try during my free time
to build an example ZIP for you with source that does the lazy loading.

Were you getting errors, or was the tree just not working?

BTW - I am using TreeModelBase and not changing the expansion state of
the model (no overrides or customizations).

-Andrew

On 7/7/06, Todd Patrick [EMAIL PROTECTED] wrote:
 I have been unsuccessful in implementing the Lazy Loading technique 
 that was described in the wiki or as described using AjaxAnywhere by 
 Andrew R.

 By all means, this is my own fault and no one else, I greatly 
 appreciate everyone's help!

 Therefore, I am at this point: I really just need the plus sign
 navigation displayed for every node, no matter if the node has a child

 or not.

 A user that clicks on the plus sign will run a server ActionEvent 
 that will get the children for that node.

 If there is no children, do nothing.

 I went back and studied the following comment on Andrew R. blog: The
 tree2 renderer looks only at the getChildCount method, not the 
 getChildren method when rendering. Meaning that if getChildCount 
 should return 0, getChildren will never be called unless the node is
expanded.

 Ok, good... now I should just be able to override the getChildCount 
 method if I extend the TreeNodeBase class, such as:

 public int getChildCount() {
 return 1;
 }

 So, in combination with the wiki example Alternative Tree2 Lazy 
 Loading Method...by jtmille3:

 public class LazyTreeNode extends TreeNodeBase {

 private static final long serialVersionUID = 
 -6870203633601493362L;

 public LazyTreeNode() {
 }

 public LazyTreeNode(String type, String description, boolean
 leaf) {
 super(type, description, leaf);
 }

 public LazyTreeNode(String type, String description, String 
 identifier, boolean leaf) {
 super(type, description, identifier, leaf);
 }

   public int getChildCount() {
   return 1;
   }

 public List getChildren() {
  // if there are no children, try and retrieve them
 if (super.getChildren().size() == 0) {
  super.getChildren().add(new 
 LazyTreeNode(document, + id,  + id,false));
 }

 return super.getChildren();
 }
 }

 This doesn't work. What I end up with is the parent value repeated 
 such
 as:

 - A
 |_ A
 |_ A
 |_ A

 Instead, I should have:

 - A
 |_ B
 |_ C
 |_ D

 The way I build my tree children is in a *for* loop in the following
 method:

  public void getTreeTransactBranch(String _transactID, TreeNode
 _transactNode) throws NamingException{
 InitialContext ctx = new InitialContext();
 DataSource ds = (javax.sql.DataSource) 
 ctx.lookup(jdbc/__Pool);
 Connection con;
 List TransactRow treeBranch = new LinkedList();

 try {
 con = ds.getConnection();
 try {
 TransactRow tree = new TransactRow();
 treeBranch = tree.selectByParentID(con, _transactID);

 for (TransactRow row : treeBranch) {

childTransactLeafLabel.append(row.getXactTypeID());
 childTransactLeafLabel.append(spacer);
 childTransactLeafLabel.append(row.getName());
 childTransactLeafLabel.append(spacer);

 childTransactLeafLabel.append(this.getDuration(row.getTCreated()));
 _transactNode.getChildren().add(new

What is the my:ajaxTree element in the MyFaces Tree2 - Creating a lazy loading tree guide?

2006-07-06 Thread Todd Patrick
What is the my:ajaxTree element in the  MyFaces Tree2 - Creating a lazy
loading tree guide?

Below, there is a reference to my:ajaxTree and my:ajaxCommandLink. I did
a Google search and nothing is referenced for these.

Thanks,

--Todd


aa:zoneJSF id=contentMgmtTreeZone
my:ajaxTree
value=#{contentMgmtBean.treeModel}
ajaxZone=contentMgmtTreeZone
var=_node
clientSideToggle=false
varNodeToggler=t
showRootNode=false
f:facet name=folder
t:panelGroup
t:graphicImage
styleClass=treeNodeIcon
url=#{_node.expanded ?
'/images/contentMgmt/openfolder.gif' :
'/images/contentMgmt/closedfolder.gif'} /
t:outputText
styleClass=folderNodeText
value=#{_node.name} /
/t:panelGroup
/f:facet
f:facet name=file
my:ajaxCommandLink
ajaxZone=contentMgmtTreeZone,myResultZone
actionListener=#{contentMgmtBean.nodeSelected}
styleClass=fileNodeLink#{
contentMgmtBean.currentFileName eq _node.name ?
' selectedNode' : ''}
t:updateActionListener
property=#{contentMgmtBean.currentFileName}
value=#{_node.name} /
t:graphicImage
styleClass=treeNodeIcon
url=/images/contentMgmt/file.gif /
t:outputText
styleClass=fileNodeText
value=#{_node.name} /
/ost:ajaxCommandLink
/f:facet
/my:ajaxTree
/aa:zoneJSF


RE: What is the my:ajaxTree element in the MyFaces Tree2 - Creating a lazy loading tree guide?

2006-07-06 Thread Todd Patrick
Thanks, I did understand your blog note.

Just the elements in the XHTML example threw me off.

I've been reviewing the AjaxAnywhere demo examples and I believe I can
use a combination of your guide with a MyFaces Tomahawk tree2 that I am
currently using below.

The only thing I am somewhat confused on is where would I put the
following Ajax Request check for my tree2:

if (AAUtils.isAjaxRequest(getRequest())) {
AAUtils.addZonesToRefresh(getRequest(), categoryList);
}

private HttpServletRequest getRequest() {
return (HttpServletRequest)
FacesContext.getCurrentInstance().getExternalContext().getRequest();
}


I believe it should go in each of my ActionEvents that my tree uses?

Thanks,

--Todd


t:tree2
id=commandTree
value=#{tbrowser.commandTreeModel}
var=node
varNodeToggler=c
showRootNode=false
clientSideToggle=false
preserveToggle=true
showLines=true
showNav=true
f:facet name=command-index
h:panelGroup
f:facet name=expand
t:graphicImage value=resources/yellow-folder-open.png
rendered=#{c.nodeExpanded} border=0/
/f:facet
f:facet name=collapse
t:graphicImage
value=resources/yellow-folder-closed.png rendered=#{!c.nodeExpanded}
border=0/
/f:facet
h:outputText value=#{node.description}
styleClass=NodeFolder/
/h:panelGroup
/f:facet
f:facet name=commands
h:panelGroup
t:commandLink immediate=true
actionListener=#{tbrowser.expandElement}
t:graphicImage value=resources/document.png
rendered=#{c.nodeExpanded} border=0/
t:graphicImage value=resources/document.png
rendered=#{!c.nodeExpanded} border=0/
h:outputText styleClass=#{t.nodeSelected ?
'Documentselected':'Document'} value=#{node.description}/
t:updateActionListener property=#{tbrowser.elementid}
value=#{node.identifier} /
/t:commandLink
/h:panelGroup
/f:facet
/t:tree2

-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 06, 2006 11:14 AM
To: MyFaces Discussion
Subject: Re: What is the my:ajaxTree element in the MyFaces Tree2 -
Creating a lazy loading tree guide?

It is an example. For my company, I extended Tree2 and added built in
AjaxAnywhere compatibility. Since it is a commercial application, I
cannot share this code. As in my blog, I mentioned that AJAX'ing the
tree is a whole different topic. I may looking into helping the
community out by creating a new tomahawk/sandbox component that is an
extension of tree2 with AJAX support, but I am not sure if I will have
the time.

As for ajaxCommandLink, it is once again an extension (this one of
commandLink) that works with AjaxAnywhere. (note: ajax4jsf has built in
support for components such as these, but not the tree).

-Andrew

On 7/6/06, Todd Patrick [EMAIL PROTECTED] wrote:
 What is the my:ajaxTree element in the  MyFaces Tree2 - Creating a 
 lazy loading tree guide?

 Below, there is a reference to my:ajaxTree and my:ajaxCommandLink. I 
 did a Google search and nothing is referenced for these.

 Thanks,

 --Todd


 aa:zoneJSF id=contentMgmtTreeZone
 my:ajaxTree
 value=#{contentMgmtBean.treeModel}
 ajaxZone=contentMgmtTreeZone
 var=_node
 clientSideToggle=false
 varNodeToggler=t
 showRootNode=false
 f:facet name=folder
 t:panelGroup
 t:graphicImage
 styleClass=treeNodeIcon
 url=#{_node.expanded ?
 '/images/contentMgmt/openfolder.gif' :
 '/images/contentMgmt/closedfolder.gif'} / t:outputText 
 styleClass=folderNodeText
 value=#{_node.name} /
 /t:panelGroup
 /f:facet
 f:facet name=file
 my:ajaxCommandLink
 ajaxZone=contentMgmtTreeZone,myResultZone
 actionListener=#{contentMgmtBean.nodeSelected}
 styleClass=fileNodeLink#{
 contentMgmtBean.currentFileName eq _node.name ?
 ' selectedNode' : ''}
 t:updateActionListener
 property=#{contentMgmtBean.currentFileName}
 value=#{_node.name} /
 t:graphicImage
 styleClass=treeNodeIcon
 url=/images/contentMgmt/file.gif /
 t:outputText
 styleClass=fileNodeText
 value=#{_node.name} /
 /ost:ajaxCommandLink
 /f:facet
 /my:ajaxTree
 /aa:zoneJSF



Error with MyFaces Tree2 and Ajaxanywhere: javax.servlet.ServletException: Component is no ActionSource

2006-07-06 Thread Todd Patrick
In my continuation of trying to get Ajaxanywhere to run with Tree2, I
have done the following:

aa:zoneJSF id=TreeTwoZone
t:tree2
id=TreeTwoZone
value=#{tbrowser.treeModel}
var=_node
clientSideToggle=false
varNodeToggler=t
showRootNode=false
f:facet name=folder
t:panelGroup
t:graphicImage
styleClass=treeNodeIcon
url=#{_node.expanded ?
'resources/yellow-folder-open.png' :
'resources/yellow-folder-closed.png'} /
t:outputText
styleClass=folderNodeText
value=#{_node.name} /
/t:panelGroup
/f:facet
f:facet name=file
t:updateActionListener
property=#{tbrowser.currentFileName}
value=#{_node.name} /
t:graphicImage
styleClass=treeNodeIcon
url=resources/document.png /
t:outputText
styleClass=fileNodeText
value=#{_node.name} /
/f:facet
/t:tree2
/aa:zoneJSF


However, now I get the error:

javax.faces.FacesException: Component TreeTwoZone is no ActionSource


Ok, so that is saying my Tree2 is not a source of an action event??? I
tried putting the aa:zoneJSF around the f:facet and that returned
the same error.

How do I:

1. Go about figuring out what the true meaning of the error is?

2. Use MyFaces Tree2 and Ajaxanywhere together properly?

Thanks,

--Todd


-Original Message-
From: Todd Patrick 
Sent: Thursday, July 06, 2006 11:26 AM
To: 'MyFaces Discussion'
Subject: RE: What is the my:ajaxTree element in the MyFaces Tree2 -
Creating a lazy loading tree guide?

Thanks, I did understand your blog note.

Just the elements in the XHTML example threw me off.

I've been reviewing the AjaxAnywhere demo examples and I believe I can
use a combination of your guide with a MyFaces Tomahawk tree2 that I am
currently using below.

The only thing I am somewhat confused on is where would I put the
following Ajax Request check for my tree2:

if (AAUtils.isAjaxRequest(getRequest())) {
AAUtils.addZonesToRefresh(getRequest(), categoryList); }

private HttpServletRequest getRequest() {
return (HttpServletRequest)
FacesContext.getCurrentInstance().getExternalContext().getRequest();
}


I believe it should go in each of my ActionEvents that my tree uses?

Thanks,

--Todd


t:tree2
id=commandTree
value=#{tbrowser.commandTreeModel}
var=node
varNodeToggler=c
showRootNode=false
clientSideToggle=false
preserveToggle=true
showLines=true
showNav=true
f:facet name=command-index
h:panelGroup
f:facet name=expand
t:graphicImage value=resources/yellow-folder-open.png
rendered=#{c.nodeExpanded} border=0/
/f:facet
f:facet name=collapse
t:graphicImage
value=resources/yellow-folder-closed.png rendered=#{!c.nodeExpanded}
border=0/
/f:facet
h:outputText value=#{node.description}
styleClass=NodeFolder/
/h:panelGroup
/f:facet
f:facet name=commands
h:panelGroup
t:commandLink immediate=true
actionListener=#{tbrowser.expandElement}
t:graphicImage value=resources/document.png
rendered=#{c.nodeExpanded} border=0/
t:graphicImage value=resources/document.png
rendered=#{!c.nodeExpanded} border=0/
h:outputText styleClass=#{t.nodeSelected ?
'Documentselected':'Document'} value=#{node.description}/
t:updateActionListener property=#{tbrowser.elementid}
value=#{node.identifier} /
/t:commandLink
/h:panelGroup
/f:facet
/t:tree2

-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 06, 2006 11:14 AM
To: MyFaces Discussion
Subject: Re: What is the my:ajaxTree element in the MyFaces Tree2 -
Creating a lazy loading tree guide?

It is an example. For my company, I extended Tree2 and added built in
AjaxAnywhere compatibility. Since it is a commercial application, I
cannot share this code. As in my blog, I mentioned that AJAX'ing the
tree is a whole different topic. I may looking into helping the
community out by creating a new tomahawk/sandbox component that is an
extension of tree2 with AJAX support, but I am not sure if I will have
the time.

As for ajaxCommandLink, it is once again an extension (this one of
commandLink) that works with AjaxAnywhere. (note: ajax4jsf has built in
support for components such as these, but not the tree).

-Andrew

On 7/6/06, Todd Patrick [EMAIL PROTECTED] wrote:
 What is the my:ajaxTree element in the  MyFaces Tree2 - Creating a 
 lazy loading tree guide?

 Below, there is a reference to my:ajaxTree and my:ajaxCommandLink. I 
 did a Google search and nothing is referenced for these.

 Thanks,

 --Todd


 aa:zoneJSF id=contentMgmtTreeZone
 my:ajaxTree
 value

RE: What is the my:ajaxTree element in the MyFaces Tree2 - Creating a lazy loading tree guide?

2006-07-06 Thread Todd Patrick
Andrew: That helps greatly.

Thank you!

--Todd 

-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 06, 2006 11:47 AM
To: MyFaces Discussion
Subject: Re: What is the my:ajaxTree element in the MyFaces Tree2 -
Creating a lazy loading tree guide?

When I added the AJAX support, I created the custom components because I
felt the view should handle the AJAX zones, not the business logic.

With that in mind:

ajaxCommandLink:
Attribute for ajaxZone
On broadcast, check if the type is an action event for the current
component if so, use AAUtils to add the zone from the attribute

ajaxTree:
Attribute for ajaxZone
custom toggle expansion method (override) that will add the ajaxZone
property value to AAUtils's zones to refresh when executed.

If you don't mind putting view code in your action methods, you can add
it there, or create action listeners. Since the AAUtils methods are
static, you could use a parameter and a action listener to do
this:

t:commandLink
  f:actionListener type=customAjaxListener /
  f:param name=ajaxZone value=myzone1, myzone2 / /t:commandLink

This is more clunky in the UI, but then you don't have to code the
components (which really isn't that hard to do.

Hope that helps,
Andrew

On 7/6/06, Todd Patrick [EMAIL PROTECTED] wrote:
 Thanks, I did understand your blog note.

 Just the elements in the XHTML example threw me off.

 I've been reviewing the AjaxAnywhere demo examples and I believe I can

 use a combination of your guide with a MyFaces Tomahawk tree2 that I 
 am currently using below.

 The only thing I am somewhat confused on is where would I put the 
 following Ajax Request check for my tree2:

 if (AAUtils.isAjaxRequest(getRequest())) {
 AAUtils.addZonesToRefresh(getRequest(), categoryList); }

 private HttpServletRequest getRequest() {
 return (HttpServletRequest)
 FacesContext.getCurrentInstance().getExternalContext().getRequest();
 }


 I believe it should go in each of my ActionEvents that my tree uses?

 Thanks,

 --Todd


 t:tree2
 id=commandTree
 value=#{tbrowser.commandTreeModel}
 var=node
 varNodeToggler=c
 showRootNode=false
 clientSideToggle=false
 preserveToggle=true
 showLines=true
 showNav=true
 f:facet name=command-index
 h:panelGroup
 f:facet name=expand
 t:graphicImage
value=resources/yellow-folder-open.png
 rendered=#{c.nodeExpanded} border=0/
 /f:facet
 f:facet name=collapse
 t:graphicImage
 value=resources/yellow-folder-closed.png
rendered=#{!c.nodeExpanded}
 border=0/
 /f:facet
 h:outputText value=#{node.description}
 styleClass=NodeFolder/
 /h:panelGroup
 /f:facet
 f:facet name=commands
 h:panelGroup
 t:commandLink immediate=true
 actionListener=#{tbrowser.expandElement}
 t:graphicImage value=resources/document.png
 rendered=#{c.nodeExpanded} border=0/
 t:graphicImage value=resources/document.png
 rendered=#{!c.nodeExpanded} border=0/
 h:outputText styleClass=#{t.nodeSelected ?
 'Documentselected':'Document'} value=#{node.description}/
 t:updateActionListener
property=#{tbrowser.elementid}
 value=#{node.identifier} /
 /t:commandLink
 /h:panelGroup
 /f:facet
 /t:tree2

 -Original Message-
 From: Andrew Robinson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 06, 2006 11:14 AM
 To: MyFaces Discussion
 Subject: Re: What is the my:ajaxTree element in the MyFaces Tree2 - 
 Creating a lazy loading tree guide?

 It is an example. For my company, I extended Tree2 and added built in 
 AjaxAnywhere compatibility. Since it is a commercial application, I 
 cannot share this code. As in my blog, I mentioned that AJAX'ing the

 tree is a whole different topic. I may looking into helping the 
 community out by creating a new tomahawk/sandbox component that is an 
 extension of tree2 with AJAX support, but I am not sure if I will have

 the time.

 As for ajaxCommandLink, it is once again an extension (this one of
 commandLink) that works with AjaxAnywhere. (note: ajax4jsf has built 
 in support for components such as these, but not the tree).

 -Andrew

 On 7/6/06, Todd Patrick [EMAIL PROTECTED] wrote:
  What is the my:ajaxTree element in the  MyFaces Tree2 - Creating a 
  lazy loading tree guide?
 
  Below, there is a reference to my:ajaxTree and my:ajaxCommandLink. I

  did a Google search and nothing is referenced for these.
 
  Thanks,
 
  --Todd
 
 
  aa:zoneJSF id=contentMgmtTreeZone my:ajaxTree 
  value=#{contentMgmtBean.treeModel}
  ajaxZone=contentMgmtTreeZone
  var=_node
  clientSideToggle=false
  varNodeToggler=t
  showRootNode=false
  f:facet name=folder
  t:panelGroup
  t:graphicImage
  styleClass=treeNodeIcon
  url=#{_node.expanded ?
  '/images/contentMgmt/openfolder.gif' :
  '/images/contentMgmt/closedfolder.gif

RE: Error with MyFaces Tree2 and Ajaxanywhere: javax.servlet.ServletException: Component is no ActionSource

2006-07-06 Thread Todd Patrick
BIG LIGHT BULB!!!

Thank you, that was the issue... (I should had know that.)

Anyways, all of your information is greatly appreciated and helpful.

I'm still hammering away on using the BaseTreeNode example from your
blog, but everything is going well... babysteps - ya know.

Thanks again,

--Todd
 

-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 06, 2006 11:52 AM
To: MyFaces Discussion
Subject: Re: Error with MyFaces Tree2 and Ajaxanywhere:
javax.servlet.ServletException: Component is no ActionSource

Your error is because you have an updateActionListener tag inside of a
facet. You have to have it in a UI command component (or anything else
that extends the action source interface). You are on the right track
for the AA code though.

See my other reply on this for more information

-Andrew

On 7/6/06, Todd Patrick [EMAIL PROTECTED] wrote:
 In my continuation of trying to get Ajaxanywhere to run with Tree2, I 
 have done the following:

 aa:zoneJSF id=TreeTwoZone
 t:tree2
 id=TreeTwoZone
 value=#{tbrowser.treeModel}
 var=_node
 clientSideToggle=false
 varNodeToggler=t
 showRootNode=false
 f:facet name=folder
 t:panelGroup
 t:graphicImage
 styleClass=treeNodeIcon
 url=#{_node.expanded ?
 'resources/yellow-folder-open.png' :
 'resources/yellow-folder-closed.png'} /
 t:outputText
 styleClass=folderNodeText
 value=#{_node.name} /
 /t:panelGroup
 /f:facet
 f:facet name=file
 t:updateActionListener
 property=#{tbrowser.currentFileName}
 value=#{_node.name} /
 t:graphicImage
 styleClass=treeNodeIcon
 url=resources/document.png /
 t:outputText
 styleClass=fileNodeText
 value=#{_node.name} /
 /f:facet
 /t:tree2
 /aa:zoneJSF


 However, now I get the error:

 javax.faces.FacesException: Component TreeTwoZone is no ActionSource


 Ok, so that is saying my Tree2 is not a source of an action event??? I

 tried putting the aa:zoneJSF around the f:facet and that returned 
 the same error.

 How do I:

 1. Go about figuring out what the true meaning of the error is?

 2. Use MyFaces Tree2 and Ajaxanywhere together properly?

 Thanks,

 --Todd


 -Original Message-
 From: Todd Patrick
 Sent: Thursday, July 06, 2006 11:26 AM
 To: 'MyFaces Discussion'
 Subject: RE: What is the my:ajaxTree element in the MyFaces Tree2 - 
 Creating a lazy loading tree guide?

 Thanks, I did understand your blog note.

 Just the elements in the XHTML example threw me off.

 I've been reviewing the AjaxAnywhere demo examples and I believe I can

 use a combination of your guide with a MyFaces Tomahawk tree2 that I 
 am currently using below.

 The only thing I am somewhat confused on is where would I put the 
 following Ajax Request check for my tree2:

 if (AAUtils.isAjaxRequest(getRequest())) {
 AAUtils.addZonesToRefresh(getRequest(), categoryList); }

 private HttpServletRequest getRequest() {
 return (HttpServletRequest)
 FacesContext.getCurrentInstance().getExternalContext().getRequest();
 }


 I believe it should go in each of my ActionEvents that my tree uses?

 Thanks,

 --Todd


 t:tree2
 id=commandTree
 value=#{tbrowser.commandTreeModel}
 var=node
 varNodeToggler=c
 showRootNode=false
 clientSideToggle=false
 preserveToggle=true
 showLines=true
 showNav=true
 f:facet name=command-index
 h:panelGroup
 f:facet name=expand
 t:graphicImage
value=resources/yellow-folder-open.png
 rendered=#{c.nodeExpanded} border=0/
 /f:facet
 f:facet name=collapse
 t:graphicImage
 value=resources/yellow-folder-closed.png
rendered=#{!c.nodeExpanded}
 border=0/
 /f:facet
 h:outputText value=#{node.description}
 styleClass=NodeFolder/
 /h:panelGroup
 /f:facet
 f:facet name=commands
 h:panelGroup
 t:commandLink immediate=true
 actionListener=#{tbrowser.expandElement}
 t:graphicImage value=resources/document.png
 rendered=#{c.nodeExpanded} border=0/
 t:graphicImage value=resources/document.png
 rendered=#{!c.nodeExpanded} border=0/
 h:outputText styleClass=#{t.nodeSelected ?
 'Documentselected':'Document'} value=#{node.description}/
 t:updateActionListener
property=#{tbrowser.elementid}
 value=#{node.identifier} /
 /t:commandLink
 /h:panelGroup
 /f:facet
 /t:tree2

 -Original Message-
 From: Andrew Robinson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 06, 2006 11:14 AM
 To: MyFaces Discussion
 Subject: Re: What is the my:ajaxTree element in the MyFaces Tree2 - 
 Creating

RE: What is the my:ajaxTree element in the MyFaces Tree2 - Creating a lazy loading tree guide?

2006-07-06 Thread Todd Patrick
I created ActionListeners, since I am at this point the most comfortable
with...

Thanks,

--Todd


-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 06, 2006 11:47 AM
To: MyFaces Discussion
Subject: Re: What is the my:ajaxTree element in the MyFaces Tree2 -
Creating a lazy loading tree guide?

When I added the AJAX support, I created the custom components because I
felt the view should handle the AJAX zones, not the business logic.

With that in mind:

ajaxCommandLink:
Attribute for ajaxZone
On broadcast, check if the type is an action event for the current
component if so, use AAUtils to add the zone from the attribute

ajaxTree:
Attribute for ajaxZone
custom toggle expansion method (override) that will add the ajaxZone
property value to AAUtils's zones to refresh when executed.

If you don't mind putting view code in your action methods, you can add
it there, or create action listeners. Since the AAUtils methods are
static, you could use a parameter and a action listener to do
this:

t:commandLink
  f:actionListener type=customAjaxListener /
  f:param name=ajaxZone value=myzone1, myzone2 / /t:commandLink

This is more clunky in the UI, but then you don't have to code the
components (which really isn't that hard to do.

Hope that helps,
Andrew

On 7/6/06, Todd Patrick [EMAIL PROTECTED] wrote:
 Thanks, I did understand your blog note.

 Just the elements in the XHTML example threw me off.

 I've been reviewing the AjaxAnywhere demo examples and I believe I can

 use a combination of your guide with a MyFaces Tomahawk tree2 that I 
 am currently using below.

 The only thing I am somewhat confused on is where would I put the 
 following Ajax Request check for my tree2:

 if (AAUtils.isAjaxRequest(getRequest())) {
 AAUtils.addZonesToRefresh(getRequest(), categoryList); }

 private HttpServletRequest getRequest() {
 return (HttpServletRequest)
 FacesContext.getCurrentInstance().getExternalContext().getRequest();
 }


 I believe it should go in each of my ActionEvents that my tree uses?

 Thanks,

 --Todd


 t:tree2
 id=commandTree
 value=#{tbrowser.commandTreeModel}
 var=node
 varNodeToggler=c
 showRootNode=false
 clientSideToggle=false
 preserveToggle=true
 showLines=true
 showNav=true
 f:facet name=command-index
 h:panelGroup
 f:facet name=expand
 t:graphicImage
value=resources/yellow-folder-open.png
 rendered=#{c.nodeExpanded} border=0/
 /f:facet
 f:facet name=collapse
 t:graphicImage
 value=resources/yellow-folder-closed.png
rendered=#{!c.nodeExpanded}
 border=0/
 /f:facet
 h:outputText value=#{node.description}
 styleClass=NodeFolder/
 /h:panelGroup
 /f:facet
 f:facet name=commands
 h:panelGroup
 t:commandLink immediate=true
 actionListener=#{tbrowser.expandElement}
 t:graphicImage value=resources/document.png
 rendered=#{c.nodeExpanded} border=0/
 t:graphicImage value=resources/document.png
 rendered=#{!c.nodeExpanded} border=0/
 h:outputText styleClass=#{t.nodeSelected ?
 'Documentselected':'Document'} value=#{node.description}/
 t:updateActionListener
property=#{tbrowser.elementid}
 value=#{node.identifier} /
 /t:commandLink
 /h:panelGroup
 /f:facet
 /t:tree2

 -Original Message-
 From: Andrew Robinson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 06, 2006 11:14 AM
 To: MyFaces Discussion
 Subject: Re: What is the my:ajaxTree element in the MyFaces Tree2 - 
 Creating a lazy loading tree guide?

 It is an example. For my company, I extended Tree2 and added built in 
 AjaxAnywhere compatibility. Since it is a commercial application, I 
 cannot share this code. As in my blog, I mentioned that AJAX'ing the

 tree is a whole different topic. I may looking into helping the 
 community out by creating a new tomahawk/sandbox component that is an 
 extension of tree2 with AJAX support, but I am not sure if I will have

 the time.

 As for ajaxCommandLink, it is once again an extension (this one of
 commandLink) that works with AjaxAnywhere. (note: ajax4jsf has built 
 in support for components such as these, but not the tree).

 -Andrew

 On 7/6/06, Todd Patrick [EMAIL PROTECTED] wrote:
  What is the my:ajaxTree element in the  MyFaces Tree2 - Creating a 
  lazy loading tree guide?
 
  Below, there is a reference to my:ajaxTree and my:ajaxCommandLink. I

  did a Google search and nothing is referenced for these.
 
  Thanks,
 
  --Todd
 
 
  aa:zoneJSF id=contentMgmtTreeZone my:ajaxTree 
  value=#{contentMgmtBean.treeModel}
  ajaxZone=contentMgmtTreeZone
  var=_node
  clientSideToggle=false
  varNodeToggler=t
  showRootNode=false
  f:facet name=folder
  t:panelGroup
  t:graphicImage
  styleClass=treeNodeIcon
  url=#{_node.expanded ?
  '/images/contentMgmt/openfolder.gif

Tree2 and Ajaxanywhere - BaseTreeNode constructor question

2006-07-06 Thread Todd Patrick
What are the first two parameters?

I assume model is the actual model i.e. the element on the jsp page.

What is parent?

Thanks,

--Todd

public BaseTreeNode(TreeModel model,
BaseTreeNode parent, String type, String identifier,
String name, boolean leaf) {
this.model = model;
this.type = type;
this.parent = parent;
this.identifier = identifier;
this.name = name;

if (leaf)
children = Collections.emptyList();
}


A question about using Facelets with Tomahawk wiki entry.

2006-06-30 Thread Todd Patrick
I'd like to move away from JSP to XHTML via Facelets for my JSF project.
 
I've have the following jar files:
 
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
jsf-facelets.jar
 
I've added the following to my web.xml file:
 
context-param
   param-namefacelets.LIBRARIES/param-name
   param-value/WEB-INF/tomahawk.taglib.xml/param-value
/context-param
 
Therefore, do I just copy the example content on the
http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk into my
tomahawk.taglib.xml?

What does the following statement mean?

Please add additional component definitions to this example as you use
them (in alphabetical order). To find the component and renderer types,
look at the getComponentType() and getRendererType() methods in the Tag
class for the component. If the Tag class does anything other than
providing pass-through getters and setters, you will need to write a
facelets TagHandler or submit patches to MyFaces to standardize the
tag handler.

Do I need to worry about this?

Thanks,

--Todd



Tree2: When using server side toggling. How do I display the plus and minus navigation icons even if I don't know if there are children.

2006-06-27 Thread Todd Patrick



Tree2: When using server side toggling. How do I 
display the "plus" and "minus" navigation icons 
initially -even if I don't know if there are children.

I know this may 
sound like an odd request, the purpose is when I build a tree, I'd like the 
"plus" navigation icon displayed initially - without clicking on the 
icon.

Right now, all I 
have is the folder with no "plus" navigation icon and I have to click on the 
folder to display the "plus" navigation icon THEN click on the "plus" navigation 
icon to expand the tree. (I believe I have one step too 
many...)

Over 
at:

http://www.irian.at/myfaces/tree2.jsf

The Tree2 
w/server-side toggle has the icon initially, but how???

I have the following 
right now:

t:tree2 
id="transactionTree" 
value="#{tbrowser.transactionTreeModel}" 
var="node" varNodeToggler="t" 
showRootNode="false" 
clientSideToggle="false" 
preserveToggle="true" 
showLines="true" showNav="true" 
f:facet 
name="transact-index" 
h:panelGroup 
f:facet 
name="expand" 
t:graphicImage value="resources/yellow-folder-open.png" 
rendered="#{t.nodeExpanded}" 
border="0"/ 
/f:facet 
f:facet 
name="collapse" 
t:graphicImage value="resources/yellow-folder-closed.png" 
rendered="#{!t.nodeExpanded}" 
border="0"/ 
/f:facet 
h:outputText value="#{node.description}" 
styleClass="NodeFolder"/ 
/h:panelGroup 
/f:facet f:facet 
name="transactions" 
h:panelGroup 
t:commandLink immediate="true" 
actionListener="#{tbrowser.expandTransaction}" 
t:updateActionListener property="#{tbrowser.transactid}" 
value="#{node.identifier}" 
/ 
t:graphicImage value="resources/yellow-folder-open.png" 
rendered="#{t.nodeExpanded}" 
border="0"/ 
t:graphicImage value="resources/yellow-folder-closed.png" 
rendered="#{!t.nodeExpanded}" 
border="0"/ 
h:outputText styleClass="#{t.nodeSelected ? 'Documentselected':'Document'}" 
value="#{node.description}"/ 
/t:commandLink 
/h:panelGroup 
/f:facet/t:tree2


I'd appreciate 
anysuggestions or thoughts on how to solve this.

Thanks,

--Todd


A note about the Tree2 Lazy Loading -- number of children not known blog...by Andrew Robinson

2006-06-27 Thread Todd Patrick



Andrew: First of 
all, thank you - this is greatly appreciated.

I only haveone 
question at this point, the line:

return 
Your business code class here.loadChildren(this);

Means 
what?

Do you have an 
example of the inner class that could be used?

Thanks,

--Todd



public class 
ContentMgmtFolderNodeextends 
BaseTreeNode{ContentMgmtFolderNode(TreeModel model, BaseTreeNode parent, 
String name){super(model, parent, "folder", name, name, 
false);}/*** @see 
com.outlooksoft.cpm.faces.model.BaseTreeNode#loadChildren()*/@Overrideprotected 
ListBaseTreeNode loadChildren(){return Your business code 
class here.loadChildren(this);}}


Automatically expand a tree once I dynamically populate a node with children?

2006-06-15 Thread Todd Patrick



Tree2 is working 
great.

A topicthat I 
cannot find in the demo code or in the mail archive is how would I automatically 
expand the tree once I dynamically populate a node with 
children?

For example, I have 
the following tree:


|- 
A
|- 
B
|- 
C

I click on 
nodeB and that runs an ActionListener that populates the children 
fornode B and I get the following:

|- 
A
+- 
B
|- 
C

I still have to 
click on the plus sign "+" to see the children after I dynamically loaded the 
children from a database.

What I would like to 
have happenwhen I click on nodeB that runs an ActionListener that 
populates the children fornode B; the tree automatically expands and 
display the children:


|- 
A
|--B
| |_ 
1
||_ 
2
| |_ 
3
|
|- 
C

Thoughts or 
suggestions are greatly appreciated.

Thanks,

--Todd




RE: tree2: How would I automatically expand the tree once I dynamically populate a node with children?

2006-06-15 Thread Todd Patrick



Sorry!

Ignore this message, I didn't mean to send this older 
draft.

--Todd


From: Todd Patrick [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 15, 2006 3:47 PMTo: MyFaces 
DiscussionSubject: tree2: How would I automatically expand the tree 
once I dynamically populate a node with children?

Tree2 is working 
great.

A topicthat I 
cannot find in the demo code or in the mail archive is how would I automatically 
expand the tree once I dynamically populate a node with 
children?

For example, I have 
the following tree:


|- 
A
|- 
B
|- 
C

I click on 
nodeB and that runs an ActionListener that populates the children 
fornode B and I get the following:

|- 
A
+- 
B
|- 
C

I still have to 
click on the plus sign "+" to see the children after I dynamically loaded the 
children from a database.

What I would like to 
have happenwhen I click on nodeB that runs an ActionListener that 
populates the children fornode B; the tree automatically expands and 
display the children:


|- 
A
|--B
| |_ 
1
||_ 
2
| |_ 
3
|
|- 
C

Thoughts or 
suggestions are greatly appreciated.

Thanks,

--Todd



RE: Automatically expand a tree once I dynamically populate a node with children?

2006-06-15 Thread Todd Patrick
I've looked in those places.

In the WIKI, there is information about lazy loading, but nothing you
described.

Thanks,

--Todd 

-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 15, 2006 4:53 PM
To: MyFaces Discussion
Subject: Re: Automatically expand a tree once I dynamically populate a
node with children?

call your model's state and expand the path manually. The expanded state
is a list of node indexes. so in this case, you need to make sure path
1 is expanded for node 'B'

Check the WIKI and this mailing list's archives for more discussions on
dynamic tree loading and manually expanding/collapsing nodes.

-Andrew

PS - would give you references, but really busy at the moment, sorry

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


 Tree2 is working great.

 A topic that I cannot find in the demo code or in the mail archive is 
 how would I automatically expand the tree once I dynamically populate 
 a node with children?

 For example, I have the following tree:


 |- A
 |- B
 |- C

 I click on node B and that runs an ActionListener that populates the 
 children for node B and I get the following:

 |- A
 +- B
 |- C

 I still have to click on the plus sign + to see the children after I

 dynamically loaded the children from a database.

 What I would like to have happen when I click on node B that runs an 
 ActionListener that populates the children for node B; the tree 
 automatically expands and display the children:


 |- A
 |--B
 |  |_ 1
 |  |_ 2
 |  |_ 3
 |
 |- C

 Thoughts or suggestions are greatly appreciated.

 Thanks,

 --Todd




What is the purpose of TreeWalkerBase, and no it's not in the Wiki or Mail archive.

2006-06-15 Thread Todd Patrick



What is the purpose of 
TreeWalkerBase?

I've 
looked in the usual places.

There 
isn't any examples of usage in the source 
either

Thanks,

--Todd



Deploy Error: java.io.NotSerializableException: javax.faces.component.html.HtmlOutputText

2006-06-14 Thread Todd Patrick
Deployment error message:

java.io.NotSerializableException:
javax.faces.component.html.HtmlOutputText

This is somewhat of an odd error... The application runs fine and the
Javabean implements Serializable.

I've removed all of the h:outputText and the error disappears, however
as soon as I add a h:outputText such as the following and deploy, I
receive the error again:

h:outputText id=searchCritera binding=#{tbrowser.selItemsOutput}/

Has anyone else dealt with a similar issue?

Thoughts?

Thanks,

--Todd



[#|2006-06-14T08:40:28.712-0500|INFO|sun-appserver-pe8.2|org.apache.cata
lina.session.ManagerBase|_ThreadID=16;|Cannot serialize session
attribute tbrowser for session d2be790127f2bbab1ddcc1c7fadf6
java.io.NotSerializableException:
javax.faces.component.html.HtmlOutputText
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13
69)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1
284)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.
java:1775)
at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSess
ion.java:985)
at
org.apache.catalina.session.StandardManager.doUnload(StandardManager.jav
a:543)
at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:
482)
at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:71
1)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4675)
at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1138)
at
com.sun.enterprise.web.VirtualServer.stop(VirtualServer.java:314)
at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1138)
at
org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:488)
at org.apache.catalina.startup.Embedded.stop(Embedded.java:936)
at
com.sun.enterprise.web.WebContainer.stop(WebContainer.java:800)
at
com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:5
39)
at
com.sun.enterprise.web.PEWebContainerLifecycle.onShutdown(PEWebContainer
Lifecycle.java:65)
at
com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer
.java:414)
at
com.sun.enterprise.server.Shutdown.startShutdown(Shutdown.java:41)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeShutdownEvent
Listener(AdminEventMulticaster.java:1445)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.handleShutdownEvent
(AdminEventMulticaster.java:1434)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminE
ventMulticaster.java:443)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(Admi
nEventMulticaster.java:139)
at
com.sun.enterprise.admin.server.core.channel.AdminChannelServer.sendNoti
fication(AdminChannelServer.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.ja
va:701)
at java.lang.Thread.run(Thread.java:595)


RE: Deploy Error: java.io.NotSerializableException: javax.faces.component.html.HtmlOutputText

2006-06-14 Thread Todd Patrick
That's the one I return as well, I didn't see an answer in that forum
thread.

Thanks,

--Todd 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Wednesday, June 14, 2006 11:14 AM
To: MyFaces Discussion
Subject: Re: Deploy Error: java.io.NotSerializableException:
javax.faces.component.html.HtmlOutputText

using google for you subject and got one URL to SUN's JSF forum.

http://forum.java.sun.com/thread.jspa?threadID=571031messageID=2826437

-Matthias

On 6/14/06, Todd Patrick [EMAIL PROTECTED] wrote:
 Deployment error message:

 java.io.NotSerializableException:
 javax.faces.component.html.HtmlOutputText

 This is somewhat of an odd error... The application runs fine and the 
 Javabean implements Serializable.

 I've removed all of the h:outputText and the error disappears, however

 as soon as I add a h:outputText such as the following and deploy, I 
 receive the error again:

 h:outputText id=searchCritera 
 binding=#{tbrowser.selItemsOutput}/

 Has anyone else dealt with a similar issue?

 Thoughts?

 Thanks,

 --Todd



 [#|2006-06-14T08:40:28.712-0500|INFO|sun-appserver-pe8.2|org.apache.ca
 ta lina.session.ManagerBase|_ThreadID=16;|Cannot serialize session 
 attribute tbrowser for session d2be790127f2bbab1ddcc1c7fadf6
 java.io.NotSerializableException:
 javax.faces.component.html.HtmlOutputText
 at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
 at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:
 13
 69)
 at

java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
 at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java
 :1
 284)
 at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
 at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
 at

org.apache.catalina.session.StandardSession.writeObject(StandardSession.
 java:1775)
 at
 org.apache.catalina.session.StandardSession.writeObjectData(StandardSe
 ss
 ion.java:985)
 at
 org.apache.catalina.session.StandardManager.doUnload(StandardManager.j
 av
 a:543)
 at

org.apache.catalina.session.StandardManager.unload(StandardManager.java:
 482)
 at
 org.apache.catalina.session.StandardManager.stop(StandardManager.java:
 71
 1)
 at

org.apache.catalina.core.StandardContext.stop(StandardContext.java:4675)
 at
 org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1138)
 at
 com.sun.enterprise.web.VirtualServer.stop(VirtualServer.java:314)
 at
 org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1138)
 at
 org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:488)
 at
org.apache.catalina.startup.Embedded.stop(Embedded.java:936)
 at
 com.sun.enterprise.web.WebContainer.stop(WebContainer.java:800)
 at
 com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java
 :5
 39)
 at
 com.sun.enterprise.web.PEWebContainerLifecycle.onShutdown(PEWebContain
 er
 Lifecycle.java:65)
 at
 com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServ
 er
 .java:414)
 at
 com.sun.enterprise.server.Shutdown.startShutdown(Shutdown.java:41)
 at
 com.sun.enterprise.admin.event.AdminEventMulticaster.invokeShutdownEve
 nt
 Listener(AdminEventMulticaster.java:1445)
 at
 com.sun.enterprise.admin.event.AdminEventMulticaster.handleShutdownEve
 nt
 (AdminEventMulticaster.java:1434)
 at
 com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(Admi
 nE
 ventMulticaster.java:443)
 at
 com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(Ad
 mi
 nEventMulticaster.java:139)
 at
 com.sun.enterprise.admin.server.core.channel.AdminChannelServer.sendNo
 ti
 fication(AdminChannelServer.java:90)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
 av
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
 or
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
 at sun.rmi.transport.Transport$1.run(Transport.java:153)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
 at

sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
 at
 sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.
 ja
 va:701)
 at java.lang.Thread.run(Thread.java:595)



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


How do I highlight the selected node in tree2?

2006-06-14 Thread Todd Patrick



I've search the mailing list on how to highlight 
the selected node in tree2, however what method or setting can accomplish 
this?

Thanks,

--Todd


RE: ADF compiled

2006-06-12 Thread Todd Patrick
I don't believe you can.

From what I understand the ADF components are in SVN only.

--Todd 

-Original Message-
From: Paulo Cheque [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 11, 2006 7:19 PM
To: users@myfaces.apache.org
Subject: ADF compiled

Hi,

Where I can find a link to download a compiled ADF components, i.e., a
jar or a collection of jars to add in my application?

I would like to use a dataTable with checkboxes (like af:tableSelectMany
(
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/ex
change/jsf/doc/tagdoc/core/imageIndex.html
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/e
xchange/jsf/doc/tagdoc/core/imageIndex.html ).
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/e
xchange/jsf/doc/tagdoc/core/tableSelectMany.html
Thanks in advance.
Paulo



RE: How does DefaultTreeModel and HtmlTree relate?

2006-06-09 Thread Todd Patrick
Matthias: Thank you, that demonstrated a lot of what I was looking for.

--Todd 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Thursday, June 08, 2006 9:31 PM
To: MyFaces Discussion
Subject: Re: How does DefaultTreeModel and HtmlTree relate?

hey Todd,

this looks like a tool for you ([1]).

But please note, the MyFaces community is NOT the creator (in case of
broken documentation)

-Matthias

[1] http://jroller.com/page/RickHigh/20060602



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

 Thank you for the follow-up...

 I'd wish that the mail archive wasn't the answer to a lot of questions

 or a source of examples.

 http://www.mail-archive.com/ is sometimes very slow and with a hot 
 deadline - somewhat a production killer and definitely a motivation 
 killer.

 This isn't a bash on MyFaces, just my opinion.

 Thanks,

 --Todd

 -Original Message-
 From: Sean Schofield [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 08, 2006 4:25 PM
 To: MyFaces Discussion
 Subject: Re: How does DefaultTreeModel and HtmlTree relate?

 There are a lot of users here who have done dynamic tree models 
 without subclassing tree.  Take a look at some of the archive posts on

 dynamic trees for some ideas.  I haven't done it myself so I'm not the

 best person to comment on that.

 Sean

 On 6/8/06, Todd Patrick [EMAIL PROTECTED] wrote:
  Sean:
 
  The big reason is I have a third-party method that returns a list of

  *any number* of transactions, it could 4 or 30:
 
  Transaction 1
  Transaction 2
  Transaction 3
  Transaction 4
 
  Not knowing the number or the number of transactions always changes 
  is

  the challenge.
 
  The other change is each Transaction has *any number* of child 
  transactions.
 
  Transaction 1
  |_ Child Transaction 1
  |_ Child Transaction 1
  Transaction 2
  |_ Child Transaction 2
  Transaction 3
  |_ Child Transaction 3
  |_ Child Transaction 3
  |_ Child Transaction 3 Transaction 4
  |_ Child Transaction 4
 
 
  Thus, I need to dynamically create the list of transactions and when

  I click on a transaction I need to figure out how to run an event 
  that gets the child transaction. When I click on the child 
  transaction, I need to get it's child as well...
 
  That's why a lack of documentation had me pulling my hair out at
 first.
 
  I am slowly figuring out a solution...
 
  Thanks,
 
  --Todd
 
 
 
 
 
  -Original Message-
  From: Sean Schofield [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 07, 2006 6:20 PM
  To: MyFaces Discussion
  Subject: Re: How does DefaultTreeModel and HtmlTree relate?
 
  Just out of curiosity, why are you creating an HtmlTree in java
code?
  Normally you would just use the JSP tags and backing beans or extend
 one
  of the classes.  Creating it directly seems strange but I'm sure you

  have your reasons.
 
  Sean
 
  On 6/7/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
   Ok, you can post it here before.
   but wiki has also *notification* mails, when sb. addes content to
 it.
  
   Sounds good to me. Looking forward to see your work.
  
   -Matthias
  
   On 6/7/06, Todd Patrick [EMAIL PROTECTED] wrote:
Matthias: Already ahead of you on that.
   
I'm documenting as I develop and learn all about the HtmlTree.
   
I really didn't mean to complain, (Sorry, I guess I did...) - 
it's just important that information on how to use *ALL* of 
MyFaces is
  available.
   
Not just Hello World crap.
   
My $.02
   
Anyways, I'll submit my documentation here first before I post 
it too the WIKI.
   
Thanks,
   
--Todd
   
   
   
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf
 
Of Matthias Wessendorf
Sent: Wednesday, June 07, 2006 4:53 PM
To: MyFaces Discussion
Subject: Re: How does DefaultTreeModel and HtmlTree relate?
   
Todd-
   
cool that you figured out how things are working.
since you complain about lack of documentation, I'd like to ask
 you
to help out in this area. Can you go ahead an create some 
documentation in our wiki ?
   
Thanks,
Matthias
   
On 6/7/06, Todd Patrick [EMAIL PROTECTED] wrote:


 Ok, I think this would work:

 HtmlTree tree = (HtmlTree)
 application.createComponent(HtmlTree.COMPONENT_TYPE);


   
 tree.setRendererType(org.apache.myfaces.custom.tree.renderkit.html.
Html
TreeRenderer);
 tree.setId(tree);
 ValueBinding vb =
 application.createValueBinding(#{tbrowser.treeModel});
 tree.setValueBinding(value, vb);

 tree.setVar(treeItem);
 tree.setStyleClass(tree);
 tree.setNodeClass(treenode);
 tree.setRowClasses(a, b);
 tree.setColumnClasses(col1, col12);
 tree.setSelectedNodeClass(treenodeSelected

If I have a component that is rendered by an ActionEvent, how to I keep the component rendered on the page if I rerun the even?

2006-06-09 Thread Todd Patrick



I have the following 
tree2 (that is working... horray!) that is displayed based on a call to an 
ActionEvent:

t:tree2id="clientTree"value="#{tbrowser.treeData}"var="node"varNodeToggler="t"showRootNode="false"rendered="#{tbrowser.displaytree}"

In my backing bean, 
I have the following code defined:

private boolean 
displaytree;

public boolean 
isDisplaytree() { return 
displaytree;} public void setDisplaytree(boolean 
_displaytree) { this.displaytree = 
_displaytree;}

public void 
transTypeSelected(ActionEvent event) {
...
 
this.displaytree = !this.displaytree;
 
FacesContext.getCurrentInstance().renderResponse();
}

When I click on the 
h:commandButton:

h:commandButton value="Search" 
actionListener="#{tbrowser.transTypeSelected}"/

Everything displays 
as I expected.

The second time I 
click on the h:commandButton, I return an error 
"java.lang.IllegalArgumentException: Unable to locate facet with the name: 
index"; which basically breaks my TreeNodeBase:

TreeNode treeData 
= new TreeNodeBase("index", "Transactions", false);

I believe that after 
I set the displaytree value (rendered)to true then back to false, my Java 
tree code can't find the tree2 component.

Thoughts on how to 
fix this, do I just refresh the tree? How do I accomplish 
that?

Thanks,

--Todd


RE: Trying to work with Tomahawk Tabbed Panes

2006-06-09 Thread Todd Patrick
Jaya: I faced the same issue in the past, here is my web.xml file:
 
?xml version=1.0 encoding=UTF-8?
web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
http://www.w3.org/2001/XMLSchema-instance 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd 
descriptionTransaction/description
context-param
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueclient/param-value
/context-param
context-param
param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
param-valuetrue/param-value
/context-param
context-param
param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
param-valuefalse/param-value
/context-param
context-param
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuetrue/param-value
/context-param
context-param
param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
param-valuetrue/param-value
/context-param
context-param
 
param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name
param-valuetrue/param-value
/context-param
context-param
param-nameorg.apache.myfaces.ADD_RESOURCE_CLASS/param-name
 
param-valueorg.apache.myfaces.renderkit.html.util.DefaultAddResource/
param-value
/context-param
 
filter
filter-nameextensionsFilter/filter-name
 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-
class
init-param
descriptionSet the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB/description
param-nameuploadMaxFileSize/param-name
param-value100m/param-value
/init-param
init-param
param-nameuploadThresholdSize/param-name
param-value100k/param-value
/init-param
/filter
filter-mapping
filter-nameextensionsFilter/filter-name
url-pattern*.jsf/url-pattern
/filter-mapping
filter-mapping
filter-nameextensionsFilter/filter-name
url-pattern/faces/*/url-pattern
/filter-mapping
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern*.jsf/url-pattern
/servlet-mapping
 
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
/web-app


The jars that I have 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


Thanks,

--Todd




From: Gopalakrishnan, Jaya [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 09, 2006 3:50 PM
To: users@myfaces.apache.org
Subject: FW: Trying to work with Tomahawk Tabbed Panes
Importance: High


 
-Original Message-
From: Gopalakrishnan, Jaya 
Sent: Friday, June 09, 2006 3:24 PM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: Trying to work with Tomahawk Tabbed Panes
Importance: High


I am trying to work with Tomahawk tabbed panes. Here is something that I
have done:
 
The code for the tabbed panes in the jsp is:

--
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
[EMAIL PROTECTED] uri=http://www.ibm.com/jsf/BrowserFramework; prefix=odc%

[EMAIL PROTECTED] uri=http://www.ibm.com/jsf/html_extended; prefix=hx%

[EMAIL PROTECTED] uri=http://java.sun.com/jsf/html; prefix=h%

%@ taglib uri=http://java.sun.com/jsf/core; prefix=f %

HTML

HEAD

%@ page language=java contentType=text/html; charset=ISO-8859-1
pageEncoding=ISO-8859-1 %

META http-equiv=Content-Type content=text/html; charset=ISO-8859-1

META name=GENERATOR content=IBM WebSphere Studio

META http-equiv=Content-Style-Type content=text/css

LINK href=theme/Master.css rel=stylesheet

type=text/css

TITLETabbedPanesJSP.jsp/TITLE

LINK rel=stylesheet type=text/css href=theme/tabpanel.css

title=Style

/HEAD

BODYbody

f:view

t:panelTabbedPane bgcolor=#FF

t:panelTab id=tab01 label=Tab No.1

t:outputText value=something/t:outputText

/t:panelTab

t:panelTab id=tab02 label=Tab No.2

t:outputText value=something else/t:outputText

/t:panelTab

/t:panelTabbedPane

/f:view

/BODY

/HTML


---

I have put tomahawk1.1.2. jar in the web-inf/lib 

RE: Trying to work with Tomahawk Tabbed Panes

2006-06-09 Thread Todd Patrick
Jaya: Do you have a mixture of JSF RI?

Example, you have the MyFaces *AND* SUN JSF jars in your web-inf/lib
folder?

This killed about an hour of my time once.

--Todd 

-Original Message-
From: Gopalakrishnan, Jaya [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 09, 2006 4:45 PM
To: MyFaces Discussion
Subject: RE: Trying to work with Tomahawk Tabbed Panes

Thanks Todd...

However, the moment, I put myfaces-api-1.1.3.jar, myfaces-impl-1.1.3.jar
in the web-inf/lib folder, my web appln simply fails to load...

If I remove the two jar files, the web application loads, however I get
the following error:

E SRVE0026E: [Servlet Error]-[Filter [extensionsFilter]: filter is
unavailable.]: java.lang.NoClassDefFoundError:
org/apache/commons/fileupload/FileUpload
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFil
ter.java:114)
at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
anceWrapper.java:132)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
ain.java:71)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java:974)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java:564)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java:200)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:1
19)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
oker.java:276)
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
on(CachedInvocation.java:71)
at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
tRequestProcessor.java:182)
at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
tener.java:334)
at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
.java:56)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)

Thanks,
Jayashree.

-Original Message-
From: Todd Patrick [mailto:[EMAIL PROTECTED]
Sent: Friday, June 09, 2006 3:55 PM
To: MyFaces Discussion
Subject: RE: Trying to work with Tomahawk Tabbed Panes


Jaya: I faced the same issue in the past, here is my web.xml file:
 
?xml version=1.0 encoding=UTF-8?
web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
http://www.w3.org/2001/XMLSchema-instance 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd 
descriptionTransaction/description
context-param
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueclient/param-value
/context-param
context-param
param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
param-valuetrue/param-value
/context-param
context-param
param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
param-valuefalse/param-value
/context-param
context-param
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuetrue/param-value
/context-param
context-param
param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
param-valuetrue/param-value
/context-param
context-param
 
param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name
param-valuetrue/param-value
/context-param
context-param
param-nameorg.apache.myfaces.ADD_RESOURCE_CLASS/param-name
 
param-valueorg.apache.myfaces.renderkit.html.util.DefaultAddResource/
param-value
/context-param
 
filter
filter-nameextensionsFilter/filter-name
 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-
class
init-param
descriptionSet the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB/description
param-nameuploadMaxFileSize/param-name
param-value100m/param-value
/init-param
init-param
param-nameuploadThresholdSize/param-name
param-value100k/param-value
/init-param
/filter
filter-mapping
filter-nameextensionsFilter/filter-name
url-pattern*.jsf/url-pattern
/filter-mapping
filter-mapping
filter-nameextensionsFilter/filter-name
url-pattern/faces/*/url-pattern
/filter-mapping
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet

RE: Trying to work with Tomahawk Tabbed Panes

2006-06-09 Thread Todd Patrick
A JSF RI is one impl and one api jar (they come in pairs).

Therefore, as Matthias mentioned, you need to pick one JSF RI.

For example I just use MyFaces RI.

You can use SUN RI with Tomahawk, there is info on myfaces.apache.org on
how to do so...

So, I would just use the MyFaces RI(myfaces-api-1.1.3.jar and
myfaces-impl-1.1.3.jar) with Tomahawk and see if that corrects your
errors.

Again, In my list, I only have the following JSF RI:

myfaces-api-1.1.3.jar
myfaces-impl-1.1.3.jar

Thanks,

--Todd
 

-Original Message-
From: Gopalakrishnan, Jaya [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 09, 2006 5:45 PM
To: MyFaces Discussion
Subject: RE: Trying to work with Tomahawk Tabbed Panes

Do u mean to say that JSF cannot be used along with Myfaces. I am
working on a project using JSF. So, if I were to remove the jar files, u
have mentioned, I don't think, I can use JSF then.

If so, is there any other way where I can use JSF and also use a custom
tabbed panel control.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Friday, June 09, 2006 5:28 PM
To: MyFaces Discussion
Subject: Re: Trying to work with Tomahawk Tabbed Panes


you have three impls

jsf-ibm.jar
jsf-impl.jar
myfaces-impl

and two APIs

jsf-api.jar
myfaces-api

remove :
jsf-api.jar
jsf-ibm.jar
jsf-impl.jar



On 6/9/06, Gopalakrishnan, Jaya [EMAIL PROTECTED] wrote:
 I have the following jar files in my web-inf/lib folder:

 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
 jsf-api.jar
 jsf-ibm.jar
 jsf-impl.jar
 odc-jsf.jar
 standard.jar

 Is there any problem?

 Regards,
 Jayashree.

 -Original Message-
 From: Todd Patrick [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 09, 2006 4:48 PM
 To: MyFaces Discussion
 Subject: RE: Trying to work with Tomahawk Tabbed Panes


 Jaya: Do you have a mixture of JSF RI?

 Example, you have the MyFaces *AND* SUN JSF jars in your web-inf/lib 
 folder?

 This killed about an hour of my time once.

 --Todd

 -Original Message-
 From: Gopalakrishnan, Jaya [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 09, 2006 4:45 PM
 To: MyFaces Discussion
 Subject: RE: Trying to work with Tomahawk Tabbed Panes

 Thanks Todd...

 However, the moment, I put myfaces-api-1.1.3.jar, 
 myfaces-impl-1.1.3.jar in the web-inf/lib folder, my web appln simply 
 fails to load...

 If I remove the two jar files, the web application loads, however I 
 get the following error:

 E SRVE0026E: [Servlet Error]-[Filter [extensionsFilter]: filter is
 unavailable.]: java.lang.NoClassDefFoundError: 
 org/apache/commons/fileupload/FileUpload
 at
 org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsF
 il
 ter.java:114)
 at

com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
 anceWrapper.java:132)
 at

com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
 ain.java:71)
 at

com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
 tch(WebAppRequestDispatcher.java:974)
 at

com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
 questDispatcher.java:564)
 at

com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
 uestDispatcher.java:200)
 at

com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:1
 19)
 at

com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
 oker.java:276)
 at

com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
 on(CachedInvocation.java:71)
 at

com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
 tRequestProcessor.java:182)
 at

com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
 tener.java:334)
 at

com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
 .java:56)
 at

com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
 618)
 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)

 Thanks,
 Jayashree.

 -Original Message-
 From: Todd Patrick [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 09, 2006 3:55 PM
 To: MyFaces Discussion
 Subject: RE: Trying to work with Tomahawk Tabbed Panes


 Jaya: I faced the same issue in the past, here is my web.xml file:

 ?xml version=1.0 encoding=UTF-8? web-app version=2.4 
 xmlns=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee  
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
 http://www.w3.org/2001/XMLSchema-instance  
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee
 http

RE: Trying to work with Tomahawk Tabbed Panes

2006-06-09 Thread Todd Patrick
That says the issue is in the EAR not the WAR, so I'm *guessing* the
issue is with in your EJBs.

Just *Guessing*.

Thanks,

--Todd 

-Original Message-
From: Gopalakrishnan, Jaya [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 09, 2006 6:04 PM
To: MyFaces Discussion
Subject: RE: Trying to work with Tomahawk Tabbed Panes

Also, as suggested, I have only the following jar files:

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
 odc-jsf.jar
 standard.jar

When I tried to run the app, the web application simply doesn't get
started. Here is the error stack:

[6/9/06 18:01:10:460 CDT] 3e327934 DeployedAppli W WSVR0206E: Module,
ParentChildJavascript.war, of application,
DefaultEAR.ear/deployments/DefaultEAR, failed to start
[6/9/06 18:01:10:460 CDT] 3e327934 ApplicationMg W WSVR0101W: An error
occurred starting, DefaultEAR

-Original Message-
From: Gopalakrishnan, Jaya
Sent: Friday, June 09, 2006 5:45 PM
To: MyFaces Discussion
Subject: RE: Trying to work with Tomahawk Tabbed Panes


Do u mean to say that JSF cannot be used along with Myfaces. I am
working on a project using JSF. So, if I were to remove the jar files, u
have mentioned, I don't think, I can use JSF then.

If so, is there any other way where I can use JSF and also use a custom
tabbed panel control.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Friday, June 09, 2006 5:28 PM
To: MyFaces Discussion
Subject: Re: Trying to work with Tomahawk Tabbed Panes


you have three impls

jsf-ibm.jar
jsf-impl.jar
myfaces-impl

and two APIs

jsf-api.jar
myfaces-api

remove :
jsf-api.jar
jsf-ibm.jar
jsf-impl.jar



On 6/9/06, Gopalakrishnan, Jaya [EMAIL PROTECTED] wrote:
 I have the following jar files in my web-inf/lib folder:

 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
 jsf-api.jar
 jsf-ibm.jar
 jsf-impl.jar
 odc-jsf.jar
 standard.jar

 Is there any problem?

 Regards,
 Jayashree.

 -Original Message-
 From: Todd Patrick [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 09, 2006 4:48 PM
 To: MyFaces Discussion
 Subject: RE: Trying to work with Tomahawk Tabbed Panes


 Jaya: Do you have a mixture of JSF RI?

 Example, you have the MyFaces *AND* SUN JSF jars in your web-inf/lib
 folder?

 This killed about an hour of my time once.

 --Todd

 -Original Message-
 From: Gopalakrishnan, Jaya [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 09, 2006 4:45 PM
 To: MyFaces Discussion
 Subject: RE: Trying to work with Tomahawk Tabbed Panes

 Thanks Todd...

 However, the moment, I put myfaces-api-1.1.3.jar,
 myfaces-impl-1.1.3.jar in the web-inf/lib folder, my web appln simply 
 fails to load...

 If I remove the two jar files, the web application loads, however I
 get the following error:

 E SRVE0026E: [Servlet Error]-[Filter [extensionsFilter]: filter is
 unavailable.]: java.lang.NoClassDefFoundError:
 org/apache/commons/fileupload/FileUpload
 at 
 org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsF
 il
 ter.java:114)
 at

com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
 anceWrapper.java:132)
 at

com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
 ain.java:71)
 at

com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
 tch(WebAppRequestDispatcher.java:974)
 at

com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
 questDispatcher.java:564)
 at

com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
 uestDispatcher.java:200)
 at

com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:1
 19)
 at

com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
 oker.java:276)
 at

com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
 on(CachedInvocation.java:71)
 at

com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
 tRequestProcessor.java:182)
 at

com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
 tener.java:334)
 at

com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
 .java:56)
 at

com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
 618)
 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)

 Thanks,
 Jayashree.

 -Original Message-
 From: Todd Patrick

RE: How does DefaultTreeModel and HtmlTree relate?

2006-06-08 Thread Todd Patrick
Sean:

The big reason is I have a third-party method that returns a list of
*any number* of transactions, it could 4 or 30:

Transaction 1
Transaction 2 
Transaction 3 
Transaction 4

Not knowing the number or the number of transactions always changes is
the challenge.

The other change is each Transaction has *any number* of child
transactions.

Transaction 1
|_ Child Transaction 1
|_ Child Transaction 1
Transaction 2
|_ Child Transaction 2
Transaction 3
|_ Child Transaction 3
|_ Child Transaction 3
|_ Child Transaction 3
Transaction 4
|_ Child Transaction 4


Thus, I need to dynamically create the list of transactions and when I
click on a transaction I need to figure out how to run an event that
gets the child transaction. When I click on the child transaction, I
need to get it's child as well...

That's why a lack of documentation had me pulling my hair out at first.

I am slowly figuring out a solution...

Thanks,

--Todd


 


-Original Message-
From: Sean Schofield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 6:20 PM
To: MyFaces Discussion
Subject: Re: How does DefaultTreeModel and HtmlTree relate?

Just out of curiosity, why are you creating an HtmlTree in java code?
Normally you would just use the JSP tags and backing beans or extend one
of the classes.  Creating it directly seems strange but I'm sure you
have your reasons.

Sean

On 6/7/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
 Ok, you can post it here before.
 but wiki has also *notification* mails, when sb. addes content to it.

 Sounds good to me. Looking forward to see your work.

 -Matthias

 On 6/7/06, Todd Patrick [EMAIL PROTECTED] wrote:
  Matthias: Already ahead of you on that.
 
  I'm documenting as I develop and learn all about the HtmlTree.
 
  I really didn't mean to complain, (Sorry, I guess I did...) - it's 
  just important that information on how to use *ALL* of MyFaces is
available.
 
  Not just Hello World crap.
 
  My $.02
 
  Anyways, I'll submit my documentation here first before I post it 
  too the WIKI.
 
  Thanks,
 
  --Todd
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

  Of Matthias Wessendorf
  Sent: Wednesday, June 07, 2006 4:53 PM
  To: MyFaces Discussion
  Subject: Re: How does DefaultTreeModel and HtmlTree relate?
 
  Todd-
 
  cool that you figured out how things are working.
  since you complain about lack of documentation, I'd like to ask you 
  to help out in this area. Can you go ahead an create some 
  documentation in our wiki ?
 
  Thanks,
  Matthias
 
  On 6/7/06, Todd Patrick [EMAIL PROTECTED] wrote:
  
  
   Ok, I think this would work:
  
   HtmlTree tree = (HtmlTree)
   application.createComponent(HtmlTree.COMPONENT_TYPE);
  
  
  tree.setRendererType(org.apache.myfaces.custom.tree.renderkit.html.
  Html
  TreeRenderer);
   tree.setId(tree);
   ValueBinding vb =
   application.createValueBinding(#{tbrowser.treeModel});
   tree.setValueBinding(value, vb);
  
   tree.setVar(treeItem);
   tree.setStyleClass(tree);
   tree.setNodeClass(treenode);
   tree.setRowClasses(a, b);
   tree.setColumnClasses(col1, col12);
   tree.setSelectedNodeClass(treenodeSelected);
  
  
   And my getter is still valid.
  
  
   public DefaultTreeModel getTreeModel() {
   return treeModel;
   }
  
  
   Thanks,
  
   --Todd
  

From: Todd Patrick
   Sent: Wednesday, June 07, 2006 4:38 PM
   To: 'MyFaces Discussion'
   Subject: How does DefaultTreeModel and HtmlTree relate?
  
  
  
   I've created a HtmlTree in Java code:
  
   HtmlTree tree = (HtmlTree)
   application.createComponent(HtmlTree.COMPONENT_TYPE);
  
  
  tree.setRendererType(org.apache.myfaces.custom.tree.renderkit.html.
  Html
  TreeRenderer);
   tree.setId(tree);
   tree.setVar(treeItem);
   tree.setStyleClass(tree);
   tree.setNodeClass(treenode);
   tree.setRowClasses(a, b);
   tree.setColumnClasses(col1, col12);
   tree.setSelectedNodeClass(treenodeSelected);
  
   How do I apply the DefaultTreeModel that I am returning from a
getter?
  
   public DefaultTreeModel getTreeModel() {
   return treeModel;
   }
  
   I know that the getter does return a valid DefaultTreeModel
object.
  
   How does DefaultTreeModel and HtmlTree relate?
  
   Thanks,
  
   --Todd
  
 
 
  --
  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: What is the purpose of the HtmlTree method addToModelListeners?

2006-06-08 Thread Todd Patrick



If I add the line:

tree.addToModelListeners();

To the following:

HtmlTree tree = (HtmlTree) 
application.createComponent("org.apache.myfaces.HtmlTree");tree.setRendererType("org.apache.myfaces.HtmlTree"); 
tree.setId("tree"); ValueBinding 
vb = 
application.createValueBinding("#{tbrowser.treeModel}"); 
tree.setValueBinding("value", vb); 
tree.setVar("treeItem"); 
tree.setStyleClass("tree"); 
tree.setNodeClass("treenode"); 
tree.setRowClasses("a, b"); 
tree.setColumnClasses("col1, 
col12"); 
tree.setSelectedNodeClass("treenodeSelected"); 
tree.addToModelListeners(); 
panel.getChildren().add(tree);

I 
still get the same NullPointerException error when I don't have the call to 
addToModeListeners.

This is frustrating beyond belief... it's so unproductive, it's not funny 
anymore.

"I've lost the entire week with baby steps all due to the lack of proper 
tutorials and documentation on Tomahawk."

--Todd


From: Todd Patrick [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 08, 2006 9:33 AMTo: MyFaces 
DiscussionSubject: What is the purpose of the HtmlTree method 
addToModelListeners?

There is no 
documentation at http://myfaces.apache.org/tomahawk/apidocs/index.htmlfor 
HtmlTree method addToModelListeners.

Right now I am 
receiving the following error:

Caused by: 
java.lang.NullPointerExceptionat 
org.apache.myfaces.custom.tree.HtmlTree.addToModelListeners(HtmlTree.java:806)

Thanks,

--Todd



RE: What is the purpose of the HtmlTree method addToModelListeners?

2006-06-08 Thread Todd Patrick
tree2 doesn't support multiple columns, that's why I can't use it.

Oracle's ADF donation is only in incubation and not a solid option at
this point.

Thanks,

--Todd

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Thursday, June 08, 2006 10:05 AM
To: MyFaces Discussion
Subject: Re: What is the purpose of the HtmlTree method
addToModelListeners?

You should use tree2 - mentioned before - or look at Oracle's ADF
donation.

well, a debugger might help you in figuring out what's wrong.

-Matthias

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


 If I add the line:

 tree.addToModelListeners();

 To the following:

 HtmlTree tree = (HtmlTree)
 application.createComponent(org.apache.myfaces.HtmlTree);
 tree.setRendererType(org.apache.myfaces.HtmlTree);
 tree.setId(tree);
 ValueBinding vb =
 application.createValueBinding(#{tbrowser.treeModel});
 tree.setValueBinding(value, vb);
 tree.setVar(treeItem);
 tree.setStyleClass(tree);
 tree.setNodeClass(treenode);
 tree.setRowClasses(a, b);
 tree.setColumnClasses(col1, col12);
 tree.setSelectedNodeClass(treenodeSelected);
 tree.addToModelListeners();
 panel.getChildren().add(tree);

 I still get the same NullPointerException error when I don't have the 
 call to addToModeListeners.

 This is frustrating beyond belief... it's so unproductive, it's not 
 funny anymore.

 I've lost the entire week with baby steps all due to the lack of 
 proper tutorials and documentation on Tomahawk.

 --Todd

  
  From: Todd Patrick [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 08, 2006 9:33 AM
 To: MyFaces Discussion
 Subject: What is the purpose of the HtmlTree method
addToModelListeners?



 There is no documentation at
 http://myfaces.apache.org/tomahawk/apidocs/index.html for HtmlTree 
 method addToModelListeners.

 Right now I am receiving the following error:

 Caused by: java.lang.NullPointerException  at
 org.apache.myfaces.custom.tree.HtmlTree.addToModelListeners(HtmlTree.j
 ava:806)

 Thanks,

 --Todd




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


RE: What is the purpose of the HtmlTree method addToModelListeners?

2006-06-08 Thread Todd Patrick
Can you download the ADF component jars only?

Install them with their dependencies and get to work?

At this point, the ADF components are only available through SVN.

Thanks,

--Todd 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Thursday, June 08, 2006 11:27 AM
To: MyFaces Discussion
Subject: Re: What is the purpose of the HtmlTree method
addToModelListeners?

That's exactly what I was saying.
It is also used in projects.

-Matthias

On 6/8/06, Cosma Colanicchia [EMAIL PROTECTED] wrote:
 I found that ADF Faces is very stable. It comes from a well tested
code base..

 Cosma



 2006/6/8, Matthias Wessendorf [EMAIL PROTECTED]:
  but you can start to provide that option to tree2.
  this is open source :-)
 
  @ADF:
   well it is not in incubator because it is buggy and not stable or 
  things like that.
   there are some other issues to solve in a open community
IP iusses, interest form users, committer (aka community)
those things are same interest in Apache. It is not only an opend
source code.
 
  On 6/8/06, Todd Patrick [EMAIL PROTECTED] wrote:
   tree2 doesn't support multiple columns, that's why I can't use it.
  
   Oracle's ADF donation is only in incubation and not a solid option

   at this point.
  
   Thanks,
  
   --Todd
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
   Behalf Of Matthias Wessendorf
   Sent: Thursday, June 08, 2006 10:05 AM
   To: MyFaces Discussion
   Subject: Re: What is the purpose of the HtmlTree method 
   addToModelListeners?
  
   You should use tree2 - mentioned before - or look at Oracle's ADF 
   donation.
  
   well, a debugger might help you in figuring out what's wrong.
  
   -Matthias
  
   On 6/8/06, Todd Patrick [EMAIL PROTECTED] wrote:
   
   
If I add the line:
   
tree.addToModelListeners();
   
To the following:
   
HtmlTree tree = (HtmlTree)
application.createComponent(org.apache.myfaces.HtmlTree);
tree.setRendererType(org.apache.myfaces.HtmlTree);
tree.setId(tree);
ValueBinding vb =
application.createValueBinding(#{tbrowser.treeModel});
tree.setValueBinding(value, vb);
tree.setVar(treeItem);
tree.setStyleClass(tree);
tree.setNodeClass(treenode);
tree.setRowClasses(a, b);
tree.setColumnClasses(col1, col12);
tree.setSelectedNodeClass(treenodeSelected);
tree.addToModelListeners();
panel.getChildren().add(tree);
   
I still get the same NullPointerException error when I don't 
have the call to addToModeListeners.
   
This is frustrating beyond belief... it's so unproductive, it's 
not funny anymore.
   
I've lost the entire week with baby steps all due to the lack 
of proper tutorials and documentation on Tomahawk.
   
--Todd
   
 
 From: Todd Patrick [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 08, 2006 9:33 AM
To: MyFaces Discussion
Subject: What is the purpose of the HtmlTree method
   addToModelListeners?
   
   
   
There is no documentation at
http://myfaces.apache.org/tomahawk/apidocs/index.html for 
HtmlTree method addToModelListeners.
   
Right now I am receiving the following error:
   
Caused by: java.lang.NullPointerException  at 
org.apache.myfaces.custom.tree.HtmlTree.addToModelListeners(Html
Tree.j
ava:806)
   
Thanks,
   
--Todd
   
   
  
  
   --
   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
 



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


RE: How does DefaultTreeModel and HtmlTree relate?

2006-06-08 Thread Todd Patrick
Sean:

Thank you for the follow-up...

I'd wish that the mail archive wasn't the answer to a lot of questions
or a source of examples.

http://www.mail-archive.com/ is sometimes very slow and with a hot
deadline - somewhat a production killer and definitely a motivation
killer.

This isn't a bash on MyFaces, just my opinion.

Thanks,

--Todd 

-Original Message-
From: Sean Schofield [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 08, 2006 4:25 PM
To: MyFaces Discussion
Subject: Re: How does DefaultTreeModel and HtmlTree relate?

There are a lot of users here who have done dynamic tree models without
subclassing tree.  Take a look at some of the archive posts on dynamic
trees for some ideas.  I haven't done it myself so I'm not the best
person to comment on that.

Sean

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

 The big reason is I have a third-party method that returns a list of 
 *any number* of transactions, it could 4 or 30:

 Transaction 1
 Transaction 2
 Transaction 3
 Transaction 4

 Not knowing the number or the number of transactions always changes is

 the challenge.

 The other change is each Transaction has *any number* of child 
 transactions.

 Transaction 1
 |_ Child Transaction 1
 |_ Child Transaction 1
 Transaction 2
 |_ Child Transaction 2
 Transaction 3
 |_ Child Transaction 3
 |_ Child Transaction 3
 |_ Child Transaction 3 Transaction 4
 |_ Child Transaction 4


 Thus, I need to dynamically create the list of transactions and when I
 click on a transaction I need to figure out how to run an event that
 gets the child transaction. When I click on the child transaction, I
 need to get it's child as well...

 That's why a lack of documentation had me pulling my hair out at
first.

 I am slowly figuring out a solution...

 Thanks,

 --Todd





 -Original Message-
 From: Sean Schofield [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 07, 2006 6:20 PM
 To: MyFaces Discussion
 Subject: Re: How does DefaultTreeModel and HtmlTree relate?

 Just out of curiosity, why are you creating an HtmlTree in java code?
 Normally you would just use the JSP tags and backing beans or extend
one
 of the classes.  Creating it directly seems strange but I'm sure you
 have your reasons.

 Sean

 On 6/7/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
  Ok, you can post it here before.
  but wiki has also *notification* mails, when sb. addes content to
it.
 
  Sounds good to me. Looking forward to see your work.
 
  -Matthias
 
  On 6/7/06, Todd Patrick [EMAIL PROTECTED] wrote:
   Matthias: Already ahead of you on that.
  
   I'm documenting as I develop and learn all about the HtmlTree.
  
   I really didn't mean to complain, (Sorry, I guess I did...) - it's
   just important that information on how to use *ALL* of MyFaces is
 available.
  
   Not just Hello World crap.
  
   My $.02
  
   Anyways, I'll submit my documentation here first before I post it
   too the WIKI.
  
   Thanks,
  
   --Todd
  
  
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf

   Of Matthias Wessendorf
   Sent: Wednesday, June 07, 2006 4:53 PM
   To: MyFaces Discussion
   Subject: Re: How does DefaultTreeModel and HtmlTree relate?
  
   Todd-
  
   cool that you figured out how things are working.
   since you complain about lack of documentation, I'd like to ask
you
   to help out in this area. Can you go ahead an create some
   documentation in our wiki ?
  
   Thanks,
   Matthias
  
   On 6/7/06, Todd Patrick [EMAIL PROTECTED] wrote:
   
   
Ok, I think this would work:
   
HtmlTree tree = (HtmlTree)
application.createComponent(HtmlTree.COMPONENT_TYPE);
   
   
  
tree.setRendererType(org.apache.myfaces.custom.tree.renderkit.html.
   Html
   TreeRenderer);
tree.setId(tree);
ValueBinding vb =
application.createValueBinding(#{tbrowser.treeModel});
tree.setValueBinding(value, vb);
   
tree.setVar(treeItem);
tree.setStyleClass(tree);
tree.setNodeClass(treenode);
tree.setRowClasses(a, b);
tree.setColumnClasses(col1, col12);
tree.setSelectedNodeClass(treenodeSelected);
   
   
And my getter is still valid.
   
   
public DefaultTreeModel getTreeModel() {
return treeModel;
}
   
   
Thanks,
   
--Todd
   
 
 From: Todd Patrick
Sent: Wednesday, June 07, 2006 4:38 PM
To: 'MyFaces Discussion'
Subject: How does DefaultTreeModel and HtmlTree relate?
   
   
   
I've created a HtmlTree in Java code:
   
HtmlTree tree = (HtmlTree)
application.createComponent(HtmlTree.COMPONENT_TYPE);
   
   
  
tree.setRendererType(org.apache.myfaces.custom.tree.renderkit.html.
   Html
   TreeRenderer);
tree.setId(tree);
tree.setVar(treeItem);
tree.setStyleClass(tree);
tree.setNodeClass

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

2006-06-07 Thread Todd Patrick
Actually no.

I want each label component rendered in their own td element, the same
goes for each input component.

Your suggestion renders (the labels for example) as noted below. All
seven labels in one td element.

Thus, none of the labels and input components line up in the first two
rows.

I just want the single panelGroup on the third line by itself, like:

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

Thanks,

--Todd


tr class=tbcell
td
label for=tbForm:transType
span class=PaginatorhighlightBase Transaction Type*/span
/label
label for=tbForm:transStartDate
span class=PaginatorhighlightStart Date*/span
/label
label for=tbForm:transStartTime
span class=PaginatorhighlightStart Time*/span
/label
label for=tbForm:transEndDate
span class=PaginatorhighlightEnd Date*/span
/label
label for=tbForm:transEndTime
span class=PaginatorhighlightEnd Time*/span
/label
label for=tbForm:clientID
span class=PaginatorClient ID/span
/label
label for=tbForm:transFind
span class=PaginatorFilter/span
/label
/td
/tr

-Original Message-
From: Jeff Bischoff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 9:07 AM
To: MyFaces Discussion
Subject: Re: Warning message: Child count should be a multiple of the
columns attribute?

ummm... this almost seems *too* easy, but why not just make the first
two lines into panelGroups, just like you did the third line?

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

And then you can make the columns=1 ...

Regards,

Jeff Bischoff
Kenneth L Kurz  Assoc, Inc.

Todd Patrick wrote:
 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

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

2006-06-07 Thread Todd Patrick
Jeff: Thank you, you're efforts are much appreciated.

--Todd 

-Original Message-
From: Jeff Bischoff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 2:18 PM
To: MyFaces Discussion
Subject: Re: Warning message: Child count should be a multiple of the
columns attribute?

My suggestion should have gotten you thinking along the right lines...

To get rid of that warning message and still have the components line
up, you need only add two lines, and modify one.

The relevant changes are the following:

line  14: columns=1
line  18: h:panelGrid columns=7
line 106: /h:panelGrid

I've tested this on JBoss for you, and it works. You're welcome.
Here is the complete (modified) source:

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=1
width=1000
bgcolor=#FF

h:panelGrid columns=7

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:panelGrid

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

Todd Patrick wrote:
 Actually no.
 
 I want each label component rendered in their own td element, the 
 same goes for each input component.
 
 Your suggestion renders (the labels for example) as noted below. All 
 seven labels in one td element.
 
 Thus, none of the labels and input components line up in the first two

 rows.
 
 I just want the single panelGroup on the third line by itself, like:
 
 x x x x x x x
 x x x x x x x
 x
 
 Thanks,
 
 --Todd
 
 
 tr class=tbcell
 td
 label for=tbForm:transType
 span class=PaginatorhighlightBase Transaction Type*/span 
 /label label for=tbForm:transStartDate span 
 class=PaginatorhighlightStart Date*/span /label label 
 for=tbForm:transStartTime span class=PaginatorhighlightStart 
 Time*/span /label label for=tbForm:transEndDate span 
 class=PaginatorhighlightEnd Date*/span /label label 
 for=tbForm:transEndTime span class=PaginatorhighlightEnd 
 Time*/span /label label for=tbForm:clientID span 
 class=PaginatorClient ID/span /label label 
 for=tbForm:transFind span class=PaginatorFilter/span /label

 /td /tr
 
 -Original Message-
 From: Jeff Bischoff [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 07, 2006 9:07 AM
 To: MyFaces Discussion
 Subject: Re: Warning message

Question about using DefaultMutableTreeNode with a java.lang.Object userObject and creating multiple trees dynamically.

2006-06-07 Thread Todd Patrick



1.) I am trying to 
populate a tree model, at this point I have:

ListIterator trans 
= 
transactList.listIterator(transactList.size()); 
while(trans.hasNext()) { TransactRow row = 
(TransactRow) trans.next(); DefaultMutableTreeNode root = 
new DefaultMutableTreeNode(row);}
this.treeModel = new 
DefaultTreeModel(root);

Depending what on 
the number of TransactRow objects returned from my transactList.listIterator, 
how do I define a placeholder (???) for any number of t:tree 
components?


2.) Also, I see I 
can pass in a userObject into the constructor for 
DefaultMutableTreeNode.

I'd like to populate the display with the fields 
fromthe row (TransactRow) object.

Do I need to 
addone t:treeColumn and a h:column for each field, such 
as:

t:tree 
id="tree" 
value="#{tbrowser.treeModel}"var="treeItem"styleClass="tree"nodeClass="treenode"headerClass="treeHeader"footerClass="treeFooter"rowClasses="a, 
b"columnClasses="col1, 
col2"selectedNodeClass="treenodeSelected"expandRoot="true"t:treeColumnf:facet 
name="header"h:outputText value="Transaction ID" 
//f:faceth:outputText value="#{treeItem.TRANSACT_ID}" 
//t:treeColumnh:columnf:facet 
name="header"h:outputText value="Transaction Type ID" 
//f:faceth:outputText value="#{treeItem.XACTTYPE_ID}" 
//h:columnh:columnf:facet 
name="header"h:outputText value="Element ID" 
//f:faceth:outputText value="#{treeItem.ELEMENT_ID}" 
//h:column/t:tree

Or can I just do the 
following and not specify each column?
Would t:tree 
dynamically build the columns?

t:tree 
id="tree" 
value="#{tbrowser.treeModel}"var="treeItem"styleClass="tree"nodeClass="treenode"headerClass="treeHeader"footerClass="treeFooter"rowClasses="a, 
b"columnClasses="col1, 
col2"selectedNodeClass="treenodeSelected"expandRoot="true"/

Thanks,

--Todd






RE: Question about using DefaultMutableTreeNode with a java.lang.Object userObject and creating multiple trees dynamically.

2006-06-07 Thread Todd Patrick



Oh wait, I think I get it.

If I have:

t:div binding="#{testBean.div}"

I could add children (any number of t:trees) I 
needed...

--Todd


From: Todd Patrick [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 3:00 PMTo: MyFaces 
DiscussionSubject: Question about using DefaultMutableTreeNode with a 
java.lang.Object userObject and creating multiple trees 
dynamically.

1.) I am trying to 
populate a tree model, at this point I have:

ListIterator trans 
= 
transactList.listIterator(transactList.size()); 
while(trans.hasNext()) { TransactRow row = 
(TransactRow) trans.next(); DefaultMutableTreeNode root = 
new DefaultMutableTreeNode(row);}
this.treeModel = new 
DefaultTreeModel(root);

Depending what on 
the number of TransactRow objects returned from my transactList.listIterator, 
how do I define a placeholder (???) for any number of t:tree 
components?


2.) Also, I see I 
can pass in a userObject into the constructor for 
DefaultMutableTreeNode.

I'd like to populate the display with the fields 
fromthe row (TransactRow) object.

Do I need to 
addone t:treeColumn and a h:column for each field, such 
as:

t:tree 
id="tree" 
value="#{tbrowser.treeModel}"var="treeItem"styleClass="tree"nodeClass="treenode"headerClass="treeHeader"footerClass="treeFooter"rowClasses="a, 
b"columnClasses="col1, 
col2"selectedNodeClass="treenodeSelected"expandRoot="true"t:treeColumnf:facet 
name="header"h:outputText value="Transaction ID" 
//f:faceth:outputText value="#{treeItem.TRANSACT_ID}" 
//t:treeColumnh:columnf:facet 
name="header"h:outputText value="Transaction Type ID" 
//f:faceth:outputText value="#{treeItem.XACTTYPE_ID}" 
//h:columnh:columnf:facet 
name="header"h:outputText value="Element ID" 
//f:faceth:outputText value="#{treeItem.ELEMENT_ID}" 
//h:column/t:tree

Or can I just do the 
following and not specify each column?
Would t:tree 
dynamically build the columns?

t:tree 
id="tree" 
value="#{tbrowser.treeModel}"var="treeItem"styleClass="tree"nodeClass="treenode"headerClass="treeHeader"footerClass="treeFooter"rowClasses="a, 
b"columnClasses="col1, 
col2"selectedNodeClass="treenodeSelected"expandRoot="true"/

Thanks,

--Todd






What is the value for RendererType when creating a HTMLTree in Java code?

2006-06-07 Thread Todd Patrick



What is the value for RendererType when creating a 
HTMLTree in Java code?

HtmlTree tree = (HtmlTree) 
application.createComponent(HtmlTree.COMPONENT_TYPE); 
tree.setRendererType("");

Where do I even 
look?

I'm at http://myfaces.apache.org/tomahawk/apidocs/index.htmland 
nothing is obvious at this point.

Thanks,

--Todd


How does DefaultTreeModel and HtmlTree relate?

2006-06-07 Thread Todd Patrick



I've created a 
HtmlTree in Java code:

HtmlTree tree = 
(HtmlTree) 
application.createComponent(HtmlTree.COMPONENT_TYPE); 
tree.setRendererType("org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeRenderer"); 
tree.setId("tree"); 
tree.setVar("treeItem"); 
tree.setStyleClass("tree"); 
tree.setNodeClass("treenode"); 
tree.setRowClasses("a, b"); 
tree.setColumnClasses("col1, 
col12"); 
tree.setSelectedNodeClass("treenodeSelected");

How do I apply the 
DefaultTreeModel that I am returning from a getter?

public 
DefaultTreeModel getTreeModel() { 
return treeModel;}

I know that the 
getter does return a valid DefaultTreeModel object.

How does 
DefaultTreeModel and HtmlTree relate?

Thanks,

--Todd


RE: How does DefaultTreeModel and HtmlTree relate?

2006-06-07 Thread Todd Patrick



Ok, I think this would work:

HtmlTree tree = (HtmlTree) 
application.createComponent(HtmlTree.COMPONENT_TYPE); 
tree.setRendererType("org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeRenderer"); 
tree.setId("tree"); ValueBinding vb = 
application.createValueBinding("#{tbrowser.treeModel}"); 
tree.setValueBinding("value", 
vb); 
tree.setVar("treeItem"); 
tree.setStyleClass("tree"); 
tree.setNodeClass("treenode"); 
tree.setRowClasses("a, b"); 
tree.setColumnClasses("col1, 
col12"); 
tree.setSelectedNodeClass("treenodeSelected");

And my getter is still valid.

public DefaultTreeModel getTreeModel() 
{ return 
treeModel;}

Thanks,

--Todd


From: Todd Patrick Sent: Wednesday, 
June 07, 2006 4:38 PMTo: 'MyFaces Discussion'Subject: How 
does DefaultTreeModel and HtmlTree relate?

I've created a 
HtmlTree in Java code:

HtmlTree tree = 
(HtmlTree) 
application.createComponent(HtmlTree.COMPONENT_TYPE); 
tree.setRendererType("org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeRenderer"); 
tree.setId("tree"); 
tree.setVar("treeItem"); 
tree.setStyleClass("tree"); 
tree.setNodeClass("treenode"); 
tree.setRowClasses("a, b"); 
tree.setColumnClasses("col1, 
col12"); 
tree.setSelectedNodeClass("treenodeSelected");

How do I apply the 
DefaultTreeModel that I am returning from a getter?

public 
DefaultTreeModel getTreeModel() { 
return treeModel;}

I know that the 
getter does return a valid DefaultTreeModel object.

How does 
DefaultTreeModel and HtmlTree relate?

Thanks,

--Todd


RE: How does DefaultTreeModel and HtmlTree relate?

2006-06-07 Thread Todd Patrick
Matthias: Already ahead of you on that.

I'm documenting as I develop and learn all about the HtmlTree.

I really didn't mean to complain, (Sorry, I guess I did...) - it's just
important that information on how to use *ALL* of MyFaces is available.

Not just Hello World crap.

My $.02

Anyways, I'll submit my documentation here first before I post it too
the WIKI.

Thanks,

--Todd

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Wednesday, June 07, 2006 4:53 PM
To: MyFaces Discussion
Subject: Re: How does DefaultTreeModel and HtmlTree relate?

Todd-

cool that you figured out how things are working.
since you complain about lack of documentation, I'd like to ask you to
help out in this area. Can you go ahead an create some documentation in
our wiki ?

Thanks,
Matthias

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


 Ok, I think this would work:

 HtmlTree tree = (HtmlTree)
 application.createComponent(HtmlTree.COMPONENT_TYPE);


tree.setRendererType(org.apache.myfaces.custom.tree.renderkit.html.Html
TreeRenderer);
 tree.setId(tree);
 ValueBinding vb =
 application.createValueBinding(#{tbrowser.treeModel});
 tree.setValueBinding(value, vb);

 tree.setVar(treeItem);
 tree.setStyleClass(tree);
 tree.setNodeClass(treenode);
 tree.setRowClasses(a, b);
 tree.setColumnClasses(col1, col12);
 tree.setSelectedNodeClass(treenodeSelected);


 And my getter is still valid.


 public DefaultTreeModel getTreeModel() {
 return treeModel;
 }


 Thanks,

 --Todd

  
  From: Todd Patrick
 Sent: Wednesday, June 07, 2006 4:38 PM
 To: 'MyFaces Discussion'
 Subject: How does DefaultTreeModel and HtmlTree relate?



 I've created a HtmlTree in Java code:

 HtmlTree tree = (HtmlTree)
 application.createComponent(HtmlTree.COMPONENT_TYPE);


tree.setRendererType(org.apache.myfaces.custom.tree.renderkit.html.Html
TreeRenderer);
 tree.setId(tree);
 tree.setVar(treeItem);
 tree.setStyleClass(tree);
 tree.setNodeClass(treenode);
 tree.setRowClasses(a, b);
 tree.setColumnClasses(col1, col12);
 tree.setSelectedNodeClass(treenodeSelected);

 How do I apply the DefaultTreeModel that I am returning from a getter?

 public DefaultTreeModel getTreeModel() {
 return treeModel;
 }

 I know that the getter does return a valid DefaultTreeModel object.

 How does DefaultTreeModel and HtmlTree relate?

 Thanks,

 --Todd



--
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
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


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: 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 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: 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 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 binding

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


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: 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


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

2006-06-05 Thread Todd Patrick



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




RE: According to the Myfaces Wiki the Tree component is considered obsolete?

2006-06-05 Thread Todd Patrick
Matthias: Thank you, my concern is how much will ADF change when
migrating to Apache incubation?

Thanks,

--Todd

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Friday, June 02, 2006 10:11 AM
To: MyFaces Discussion
Subject: Re: According to the Myfaces Wiki the Tree component is
considered obsolete?

tree2 has not be used as a tree table

ADF Faces contains also a treeTable.
But using treeTable from tomahawk is fine too for now.
But looking at Adf Faces is perhaps the better choice.

-Matthias

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


 According to the Myfaces Wiki the Tree component is considered
obsolete?

 I'd like to use a Tree Table, can Tree2 have multiple columns of data 
 displayed at the leaf and children level?

 Thanks,

 --Todd



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


Where is the TreeItem Javadoc?

2006-06-05 Thread Todd Patrick



In the 
example:

/org/apache/myfaces/examples/listexample/TreeTable.java

There is the 
following:

DefaultMutableTreeNode root = new 
DefaultMutableTreeNode(new TreeItem(1, "XY", "9001", "XY 
9001")); DefaultMutableTreeNode a 
= new DefaultMutableTreeNode(new TreeItem(2, "A", "9001", "A 
9001")); 
root.insert(a); 
DefaultMutableTreeNode b = new DefaultMutableTreeNode(new TreeItem(3, "B", 
"9001", "B 9001")); 
root.insert(b); 
DefaultMutableTreeNode c = new DefaultMutableTreeNode(new TreeItem(4, "C", 
"9001", "C 9001")); 
root.insert(c);

Where is the 
TreeItem Javadoc on http://myfaces.apache.org/tomahawk/apidocs/index.html?

I've looked without 
success.

Thanks,

--Todd


RE: Where is the TreeItem Javadoc?

2006-06-05 Thread Todd Patrick



Great.

There isn't a TreeItem, so this example for TreeTable is 
absolutely worthless. When I added:

TreeItem item = new TreeItem();

TreeItem wasn't found in MyFaces Tomahawk 
1.1.2.

"This is frustrating..."

--Todd


From: Todd Patrick [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 9:26 AMTo: MyFaces 
DiscussionSubject: Where is the TreeItem 
Javadoc?

In the 
example:

/org/apache/myfaces/examples/listexample/TreeTable.java

There is the 
following:

DefaultMutableTreeNode root = new 
DefaultMutableTreeNode(new TreeItem(1, "XY", "9001", "XY 
9001")); DefaultMutableTreeNode a 
= new DefaultMutableTreeNode(new TreeItem(2, "A", "9001", "A 
9001")); 
root.insert(a); 
DefaultMutableTreeNode b = new DefaultMutableTreeNode(new TreeItem(3, "B", 
"9001", "B 9001")); 
root.insert(b); 
DefaultMutableTreeNode c = new DefaultMutableTreeNode(new TreeItem(4, "C", 
"9001", "C 9001")); 
root.insert(c);

Where is the 
TreeItem Javadoc on http://myfaces.apache.org/tomahawk/apidocs/index.html?

I've looked without 
success.

Thanks,

--Todd


RE: Where is the TreeItem Javadoc?

2006-06-05 Thread Todd Patrick
Matthias:

I really don't want to sound like I'm whining, but how are we suppose to
use this?

It caught me off guard that the example contains objects that aren't
defined in the MyFaces Tomahawk Core.

IMO: This isn't developer friendly by any means.

When I downloaded the MyFaces Tomahawk Core 1.1.2, I would had thought
that the examples would be in line with the Core.

Thanks,

--Todd

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Monday, June 05, 2006 10:04 AM
To: MyFaces Discussion
Subject: Re: Where is the TreeItem Javadoc?

Hey,

since TreeItem,java is not part of MyFaces Tomahawk Core It was
introduced *into* the EXAMPLE application

here the SRC goes

http://tinyurl.com/zpygz

BTW. Tree2 has some thing like that TreeNode (an interface...) with two
impls of that Interface

HTH,
Matthias

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


 Great.

 There isn't a TreeItem, so this example for TreeTable is absolutely 
 worthless. When I added:

 TreeItem item = new TreeItem();

 TreeItem wasn't found in MyFaces Tomahawk 1.1.2.

 This is frustrating...

 --Todd

  
  From: Todd Patrick [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 05, 2006 9:26 AM
 To: MyFaces Discussion
 Subject: Where is the TreeItem Javadoc?



 In the example:

 /org/apache/myfaces/examples/listexample/TreeTable.java

 There is the following:

 DefaultMutableTreeNode root = new DefaultMutableTreeNode(new 
 TreeItem(1, XY, 9001, XY 9001));
 DefaultMutableTreeNode a = new DefaultMutableTreeNode(new 
 TreeItem(2, A, 9001, A 9001));
 root.insert(a);
 DefaultMutableTreeNode b = new DefaultMutableTreeNode(new 
 TreeItem(3, B, 9001, B 9001));
 root.insert(b);
 DefaultMutableTreeNode c = new DefaultMutableTreeNode(new 
 TreeItem(4, C, 9001, C 9001));
 root.insert(c);

 Where is the TreeItem Javadoc on
 http://myfaces.apache.org/tomahawk/apidocs/index.html?

 I've looked without success.

 Thanks,

 --Todd



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


RE: According to the Myfaces Wiki the Tree component is considered obsolete?

2006-06-05 Thread Todd Patrick
Matthias: Thank you.

My thought was, start using Oracle ADF then when ADF was ready, migrate
over.

However, how much would break in the migration, if anything.

Will it be an easy transition for developers using the current Oracle
ADF to use ADF?

Thanks,

--Todd

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Monday, June 05, 2006 10:08 AM
To: MyFaces Discussion
Subject: Re: According to the Myfaces Wiki the Tree component is
considered obsolete?

well,

the name ...
and instead of oracle.***

there is some apache based namespaces.

Please take over such discussions to the ADF lists.
(currently they are named ADF ...)

-Matthias

On 6/5/06, Todd Patrick [EMAIL PROTECTED] wrote:
 Matthias: Thank you, my concern is how much will ADF change when 
 migrating to Apache incubation?

 Thanks,

 --Todd

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf 
 Of Matthias Wessendorf
 Sent: Friday, June 02, 2006 10:11 AM
 To: MyFaces Discussion
 Subject: Re: According to the Myfaces Wiki the Tree component is 
 considered obsolete?

 tree2 has not be used as a tree table

 ADF Faces contains also a treeTable.
 But using treeTable from tomahawk is fine too for now.
 But looking at Adf Faces is perhaps the better choice.

 -Matthias

 On 6/2/06, Todd Patrick [EMAIL PROTECTED] wrote:
 
 
  According to the Myfaces Wiki the Tree component is considered
 obsolete?
 
  I'd like to use a Tree Table, can Tree2 have multiple columns of 
  data displayed at the leaf and children level?
 
  Thanks,
 
  --Todd
 


 --
 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


Is there an example of using DefaultMutableTreeNode with a List object?

2006-06-05 Thread Todd Patrick



Is there an example 
of using DefaultMutableTreeNode with a List object?

I found that the 
constructor allows:

DefaultMutableTreeNode(java.util.List children, boolean 
allowsChildren) 

This is more to what 
I need, is there an example usage of this?

I'd like to know how 
if I would have to create a DefaultMutableTreeNode object for each parent, since 
the List object parameter is a list of children?

Thanks,

--Todd


RE: Is there a MyFaces Tomahawk guide?

2006-06-05 Thread Todd Patrick
Dave: Thank you.

I've been looking into Facelets. I have a decision to be made at this
point. I'm probably 20% done with the project at this point.

I know that doesn't seem like a lot, but I am weighing in if a change at
this point would benefit the entire project as a whole in terms of time.

As I've stated before, the biggest obstacle I've had is the lack of
MyFaces Tomahawk documentation.

Thus, I've been struggling trying to get small pieces done, such as
Tree2 and TreeTable - which I've had to piece together examples and
documentation.

Anyways, has Facelets saved you time in your projects? At this point,
time is at the essence.

Thanks,

--Todd

-Original Message-
From: Dave Brondsema [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 12:05 PM
To: MyFaces Discussion
Subject: Re: Is there a MyFaces Tomahawk guide?


Facelets is something you would use in addition to MyFaces and Tomahawk,
if you're going to use it.  It replaces JSPs with XHTML files for your
view definitions, and provides some nice templating components.

Todd Patrick wrote:
 To continue, I've selected MyFaces and Tomahawk for a mission critical

 engineering project.
 
 I can say right now that I might need to look else where if 
 documentation or a guide is lacking.
 
 I really can't spend a lot of time piecing together information when I

 know development needs to be done.
 
 I looked at Oracle ADF and they were too expensive. I might need to 
 look at Facelets or Icefaces.
 
 MyFaces and Tomahawk really fits my needs, I'd really with there was 
 better information.
 
 Thanks,
 
 --Todd
 
 -Original Message-
 From: James Richards [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 02, 2006 9:55 AM
 To: MyFaces Discussion
 Subject: RE: Is there a MyFaces Tomahawk guide?
 
 +1 on the documentation.  Having spent some time grokking MyFaces, I 
 +can
 say that it's truly needed.  I'll help in any way that I can on such 
 an effort.
 
 
 -Original Message-
 From: Todd Patrick [mailto:[EMAIL PROTECTED]
 Sent: Fri 6/2/2006 10:43 AM
 To: MyFaces Discussion
 Subject: Is there a MyFaces Tomahawk guide?
  
 I'd like to know if there is a MyFaces Tomahawk guide?
  
 The samples are ok, the Wiki lacks a lot of detail and the Javadocs 
 can only do so much in terms of learning how to properly use the
components.
  
 This isn't negative, I'd just like to know if I'm missing something.
  
 MyFaces Tomahawk would be a lot more developer friendly if good 
 documentation was available.
  
 Thanks,
  
 --Todd
 


--
Dave Brondsema
Software Developer
Cornerstone University



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

2006-06-05 Thread Todd Patrick



TreeTable example from SVN doesn't collapse or 
expand.

I copied the files 
downloaded from SVN into my project, compiled and deployed to SJSAS 
8.2with no errors.

I ran the example in 
Firefox and everything shows up, the folder icon, the minus symbol iconand 
the data.

I tried to collapse 
the tree by clicking on the minus symbol icon and nothing happened, no postback, 
no _javascript_ error or anything.

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

How do I fix 
this?

Thanks,

--Todd


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

2006-06-05 Thread Todd Patrick
Matthias: Thank you.

I'm taking a look at it as well...

Thanks,

--Todd 

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

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


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

2006-06-05 Thread Todd Patrick
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: Missing myfaces-X.X.X-examples.zip

2006-06-05 Thread Todd Patrick
Welcome David.

I too have ran into that issue as well.

The examples are in the SVN repository and link is available under the
heading:

Latest source code and nightly builds from SVN repository

On the page:

http://myfaces.apache.org/download.html

The link should go to:

http://apache.org/dev/version-control.html

If your on Windows, you could use SmartSVN and download the examples and
source.

Thanks,

--Todd

 

-Original Message-
From: David Van Stone [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 2:59 PM
To: users@myfaces.apache.org
Subject: Missing myfaces-X.X.X-examples.zip

Hello,

I've recently downloaded myfaces 1.1.3 core and I'm trying to play with
it, using Weblogic 9.1 as a servlet container.

The Getting Started page at myfaces.apache.org suggests for a new
developer to install and run the examples. The pointer is to
http://myfaces.apache.org/downl oad.html.

However, the download page only has Core, Tomahawk, and Tobago. No
examples!

I have found older versions of the examples, but they have older copies
of the myfaces libraries (and the web.xml refers to the outdated
net.sourceforge).

My goal is to find any small war file example using myfaces 1.1.3. All
online tutorials I've found uses either older myfaces or Sun's RI.

Thanks for any pointers,

-David Van Stone-





Re-occurring issue with Myfaces Tomahawk 1.1.2 and org.apache.commons.digester.Digester

2006-06-05 Thread Todd Patrick



When I deploy a 
project to SJSAS 8.2, the following warnings keep appearing in my server.log 
file. This may not be SJSAS 8.2 specific and could probably happen in Tomcat as 
well.

Does anyone have any 
ideas of why org.apache.commons.digester.Digester is outputting warning 
messages?

Thanks,

--Todd


[#|2006-06-05T16:02:33.708-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ConverterRule]{faces-config/converter} 
Merge(null,java.math.BigDecimal)|#]

[#|2006-06-05T16:02:33.708-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ConverterRule]{faces-config/converter} 
Merge(null,java.math.BigInteger)|#]

[#|2006-06-05T16:02:33.864-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlCommandButton)|#]

[#|2006-06-05T16:02:33.864-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlCommandLink)|#]

[#|2006-06-05T16:02:33.864-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlDataTable)|#]

[#|2006-06-05T16:02:33.880-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlInputHidden)|#]

[#|2006-06-05T16:02:33.880-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlInputSecret)|#]

[#|2006-06-05T16:02:33.880-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlInputText)|#]

[#|2006-06-05T16:02:33.880-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlInputTextHelp)|#]

[#|2006-06-05T16:02:33.880-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlInputTextarea)|#]

[#|2006-06-05T16:02:33.880-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlGraphicImage)|#]

[#|2006-06-05T16:02:33.880-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlMessage)|#]

[#|2006-06-05T16:02:33.895-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlMessages)|#]

[#|2006-06-05T16:02:33.895-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlOutputLabel)|#]

[#|2006-06-05T16:02:33.895-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlOutputText)|#]

[#|2006-06-05T16:02:33.895-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlPanelGrid)|#]

[#|2006-06-05T16:02:33.895-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlPanelGroup)|#]

[#|2006-06-05T16:02:33.895-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlSelectBooleanCheckbox)|#]

[#|2006-06-05T16:02:33.911-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlSelectManyCheckbox)|#]

[#|2006-06-05T16:02:33.911-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlSelectManyListbox)|#]

[#|2006-06-05T16:02:33.911-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlSelectManyMenu)|#]

[#|2006-06-05T16:02:33.911-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlSelectOneListbox)|#]

[#|2006-06-05T16:02:33.911-0500|WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=19;|[ComponentRule]{faces-config/component} 
Merge(org.apache.myfaces.HtmlSelectOneMenu)|#]


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

2006-06-05 Thread Todd Patrick
David: Well, I'm not for sure about that...

My SVN location is: http://svn.apache.org/repos/asf.

My login is: Anonymous

The examples directory should be with:

/assembly
/core
/examples
/sandbox

Under a 1_1_2 directory.

Thanks,

--Todd 

-Original Message-
From: David Van Stone [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 4:23 PM
To: users@myfaces.apache.org
Subject: RE: Missing myfaces-X.X.X-examples.zip


 Welcome David.
 I too have ran into that issue as well. 

Thanks, and that's good to hear!

You suggest I go to the SVN repository. Thanks - I hadn't tried that. I
believe I found several examples under the legacy branch, so I presume
there are no current examples. I'll see what I can find under legacy. (I
presume that's what you did?)

Cheers,

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



According to the Myfaces Wiki the Tree component is considered obsolete?

2006-06-02 Thread Todd Patrick



According to the Myfaces Wiki the Tree component is 
considered obsolete?

I'd like to use a 
Tree Table, can Tree2 have multiple columns of data displayed at the leaf and 
children level?

Thanks,

--Todd



Is there a MyFaces Tomahawk guide?

2006-06-02 Thread Todd Patrick



I'd like to know if 
there is a MyFaces Tomahawk guide?

The samples are ok, 
the Wiki lacks a lot of detail and the Javadocs can only do so much in terms of 
learning how to properly use the components.

This isn't negative, 
I'd just like to know if I'm missing something.

MyFaces Tomahawk 
would be a lot more developer friendly if good documentation was 
available.

Thanks,

--Todd


org.apache.commons.digester.Digester issues with ConverterRule?

2006-06-02 Thread Todd Patrick
When Sun Java System Application Server 8.2 starts up; it logs a lot of
warning messages to the server.log file.

Each warning relates to using org.apache.commons.digester.Digester.

Is there an issue that I need to resolve?

What version of the digester package do I need?

Thanks,

--Todd


[#|2006-06-02T09:49:42.711-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ConverterRule]{faces-config/conv
erter} Merge(null,java.math.BigDecimal)|#]

[#|2006-06-02T09:49:42.727-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ConverterRule]{faces-config/conv
erter} Merge(null,java.math.BigInteger)|#]


[#|2006-06-02T09:49:46.398-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ConverterRule]{faces-config/conv
erter} Merge(null,java.math.BigDecimal)|#]

[#|2006-06-02T09:49:46.414-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ConverterRule]{faces-config/conv
erter} Merge(null,java.math.BigInteger)|#]

[#|2006-06-02T09:49:46.477-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlCommandButton)|#]

[#|2006-06-02T09:49:46.477-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlCommandLink)|#]

[#|2006-06-02T09:49:46.492-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlDataTable)|#]

[#|2006-06-02T09:49:46.492-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlInputHidden)|#]

[#|2006-06-02T09:49:46.492-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlInputSecret)|#]

[#|2006-06-02T09:49:46.492-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlInputText)|#]

[#|2006-06-02T09:49:46.492-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlInputTextHelp)|#]

[#|2006-06-02T09:49:46.492-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlInputTextarea)|#]

[#|2006-06-02T09:49:46.492-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlGraphicImage)|#]

[#|2006-06-02T09:49:46.492-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlMessage)|#]

[#|2006-06-02T09:49:46.492-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlMessages)|#]

[#|2006-06-02T09:49:46.492-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlOutputLabel)|#]

[#|2006-06-02T09:49:46.492-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlOutputText)|#]

[#|2006-06-02T09:49:46.492-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlPanelGrid)|#]

[#|2006-06-02T09:49:46.508-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlPanelGroup)|#]

[#|2006-06-02T09:49:46.508-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlSelectBooleanCheckbox)|#]

[#|2006-06-02T09:49:46.508-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlSelectManyCheckbox)|#]

[#|2006-06-02T09:49:46.508-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlSelectManyListbox)|#]

[#|2006-06-02T09:49:46.508-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlSelectManyMenu)|#]

[#|2006-06-02T09:49:46.508-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=10;|[ComponentRule]{faces-config/comp

RE: Is there a MyFaces Tomahawk guide?

2006-06-02 Thread Todd Patrick
To continue, I've selected MyFaces and Tomahawk for a mission critical
engineering project.

I can say right now that I might need to look else where if
documentation or a guide is lacking.

I really can't spend a lot of time piecing together information when I
know development needs to be done.

I looked at Oracle ADF and they were too expensive. I might need to look
at Facelets or Icefaces.

MyFaces and Tomahawk really fits my needs, I'd really with there was
better information.

Thanks,

--Todd 

-Original Message-
From: James Richards [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 02, 2006 9:55 AM
To: MyFaces Discussion
Subject: RE: Is there a MyFaces Tomahawk guide?

+1 on the documentation.  Having spent some time grokking MyFaces, I can
say that it's truly needed.  I'll help in any way that I can on such an
effort.


-Original Message-
From: Todd Patrick [mailto:[EMAIL PROTECTED]
Sent: Fri 6/2/2006 10:43 AM
To: MyFaces Discussion
Subject: Is there a MyFaces Tomahawk guide?
 
I'd like to know if there is a MyFaces Tomahawk guide?
 
The samples are ok, the Wiki lacks a lot of detail and the Javadocs can
only do so much in terms of learning how to properly use the components.
 
This isn't negative, I'd just like to know if I'm missing something.
 
MyFaces Tomahawk would be a lot more developer friendly if good
documentation was available.
 
Thanks,
 
--Todd



RE: Is there a MyFaces Tomahawk guide?

2006-06-02 Thread Todd Patrick
Matthias: Your correct, at the time I was looking at Oracle ADF before
they had donated ADF to Apache.

Oracle wanted nearly $4000.00 per CPU and this project is going on a 8
CPU SUN Solaris Server...

(Sounds of paper shredding.)

Thanks for the follow-up.

--Todd 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Friday, June 02, 2006 10:18 AM
To: MyFaces Discussion
Subject: Re: Is there a MyFaces Tomahawk guide?

Sure,

wiki is a good place. Lot's of documentation is already in it.
More is better than less.

BTW. adf faces has been donated to Apache Software Foundation. So, I
don't think that this software is so expensive (see [1]).

-Matthias

[1] http://wiki.apache.org/myfaces/ADF_Faces

On 6/2/06, Andrew Robinson [EMAIL PROTECTED] wrote:
 There are WIKIs, perhaps the best way to get started is for a new WIKI

 topic and have people start contributing. What do the MyFaces 
 contributors think?

 -Andrew

 On 6/2/06, Todd Patrick [EMAIL PROTECTED] wrote:
  To continue, I've selected MyFaces and Tomahawk for a mission 
  critical engineering project.
 
  I can say right now that I might need to look else where if 
  documentation or a guide is lacking.
 
  I really can't spend a lot of time piecing together information when

  I know development needs to be done.
 
  I looked at Oracle ADF and they were too expensive. I might need to 
  look at Facelets or Icefaces.
 
  MyFaces and Tomahawk really fits my needs, I'd really with there was

  better information.
 
  Thanks,
 
  --Todd
 
  -Original Message-
  From: James Richards [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 02, 2006 9:55 AM
  To: MyFaces Discussion
  Subject: RE: Is there a MyFaces Tomahawk guide?
 
  +1 on the documentation.  Having spent some time grokking MyFaces, I

  +can
  say that it's truly needed.  I'll help in any way that I can on such

  an effort.
 
 
  -Original Message-
  From: Todd Patrick [mailto:[EMAIL PROTECTED]
  Sent: Fri 6/2/2006 10:43 AM
  To: MyFaces Discussion
  Subject: Is there a MyFaces Tomahawk guide?
 
  I'd like to know if there is a MyFaces Tomahawk guide?
 
  The samples are ok, the Wiki lacks a lot of detail and the Javadocs 
  can only do so much in terms of learning how to properly use the
components.
 
  This isn't negative, I'd just like to know if I'm missing something.
 
  MyFaces Tomahawk would be a lot more developer friendly if good 
  documentation was available.
 
  Thanks,
 
  --Todd
 
 



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


Is there a detailed Tomahawk Tree2 example, the wiki information doesn't really help.

2006-06-01 Thread Todd Patrick



Is there a detailed Tomahawk Tree2 example, the 
wiki information 
onTree2doesn't really help.

I've been reviewing 
the information at:

http://wiki.apache.org/myfaces/Tree2?highlight=%28Tree%29

"This doesn't 
help."

For example, why 
extend TreeNodeBase with a new class?

I'd appreciate any 
reference to adetailed Tomahawk Tree2 example with JSF and Java code 
included.

Thanks,

--Todd



Where is the backing bean java code for examples/treeTable.jsp?

2006-06-01 Thread Todd Patrick



Where is the backing bean java code for 
examples/treeTable.jsp?

I'm really 
frustrated on how unorganized the examples are, why is it so difficult to get 
the backbean for each .jsp file in the examples directory?

Thanks,

--Todd



message-bundle: Do I need to define my .properties file in the faces-config.xml AND the jsp file both?

2006-05-10 Thread Todd Patrick



Concerning a 
.properties file, do I need to define the .properties file in my 
faces-config.xml:

application 
locale-config 
default-localeen_US/default-locale 
/locale-config 
message-bundlecom.dtn.petro2.petro_admin.tbrowser/message-bundle/application


*AND*in the 
.jsp page:

f:loadBundle 
basename="com.dtn.petro2.petro_admin.tbrowser" var="tb"/

I return the 
following error if I don't have the .properties file definedin my 
faces-config.xml and only have it defined in my jsp file:

[#|2006-05-10T10:50:12.168-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=12;|ApplicationDispatcher[/transactionbrowser] 
Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException: null 
MessageFactory

Thanks,

--Todd


Deployment warning: /WEB-INF/faces-config.xml has been specified in the javax.faces.CONFIG_FILES context parameter of the deployment descriptor

2006-05-09 Thread Todd Patrick



When I deploy a 
Myfaces based project to Sun Java System Application Server 8.2, I receive the 
following warning:

[#|2006-05-09T10:13:14.005-0500|WARNING|sun-appserver-pe8.2|org.apache.myfaces.config.FacesConfigurator|_ThreadID=11;|/WEB-INF/faces-config.xml 
has been specified in the javax.faces.CONFIG_FILES context parameter of the 
deployment descriptor. This should be removed, as it will be loaded twice. 
See JSF spec 1.1, 10.3.2|#]

Therefore, I went 
and looked at the JSF spec 1.1 as noted below. What should I be removing to 
clear this warning?

I checked my web.xml 
file and it does have:

context-paramparam-namejavax.faces.CONFIG_FILES/param-nameparam-value/WEB-INF/faces-config.xml/param-value/context-param

Is it ok to remove 
this, since my faces-config.xml is in the /WEB-INF directory? I just want to 
double-check.

Thanks,

--Todd


JSF spec 1.1, 
10.3.2:

At application startup time, 
before any requests are processed, the JSF implementation must process zero or 
more application configuration resources, located according to the following 
algorithm:

Search for all resources named 
META-INF/faces-config.xml in the ServletContext resource paths for this web 
application, and load each as a JSF configuration resource (in reverse order of 
the order in which they are returned by getResources()).

Check for the existence of a 
context initialization parameter named javax.faces.CONFIG_FILES. If it exists, 
treat it as a comma-delimited list of context relative resource paths (starting 
with a /), and load each of the specfied resources.

Check for the existence of a 
web application configuration resource named /WEB-INF/faces-config.xml, and 
load it if the resource exists.

This algorithm provides 
considerable flexibility for developers that are assembling the components of a 
JSF-based web application. For example, an application might include one or more 
custom UIComponent implementations, along with associated Renderers, so it can 
declare them in an application resource named /WEBINF/ faces-config.xml with 
no need to programmatically register them with Application instance. In 
addition, the application might choose to include a component library (packaged 
as a JAR file) that includes a META-INF/facesconfig. xml resource. The 
existence of this resource causes components, renderers, and other JSF 
implementation classes that are stored in this library JAR file to be 
automatically registered, with no action required by the application. Chapter 10 
Using JSF in Web Applications 10-11 XML parsing errors detected during the 
loading of an application resource file are fatal to application startup, and 
must cause the application to not be made available by the container. Whether or 
not a validating parse is performed is up to the JSF implementation; it is 
recommended that the JSF implementation provide a configuration parameter to 
control whether or not validation occurs.


RE: Deployment warning: /WEB-INF/faces-config.xml has been specified in the javax.faces.CONFIG_FILES context parameter of the deployment descriptor

2006-05-09 Thread Todd Patrick



This a Sun Java System Application Server 8.2 server log 
output. I set the logging to INFO, so I could see what was going 
on.

Thanks,

--Todd


From: David G. Friedman 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 10:39 
AMTo: MyFaces DiscussionSubject: RE: Deployment warning: 
/WEB-INF/faces-config.xml has been specified in the javax.faces.CONFIG_FILES 
context parameter of the deployment descriptor

I 
didn't know MyFaces had added warnings like that. What version of MyFaces 
are you using? OR Is it something the Sun App server 8.2 is doing only on 
deploy or did you get that log entry every time you started your webapp? 
Nifty.

Regards,
David 
Friedman / [EMAIL PROTECTED]

  -Original Message-From: Cosma Colanicchia 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, May 09, 2006 11:31 
  AMTo: MyFaces DiscussionSubject: Re: Deployment warning: 
  /WEB-INF/faces-config.xml has been specified in the javax.faces.CONFIG_FILES 
  context parameter of the deployment descriptorAFAIK, 
  WEB-INF/faces-config.xml is loaded by default, you have to list only 
  additional faces-config files in your web.xmlCosma
  2006/5/9, Todd Patrick  [EMAIL PROTECTED]: 
  

When I deploy a Myfaces based project to 
Sun Java System Application Server 8.2, I receive the following 
warning:

[#|2006-05-09T10:13:14.005-0500|WARNING|sun-appserver-pe8.2|org.apache.myfaces.config.FacesConfigurator|_ThreadID=11;|/WEB-INF/faces-config.xml 
has been specified in the javax.faces.CONFIG_FILES context parameter of the 
deployment descriptor. This should be removed, as it will be loaded 
twice. See JSF spec 1.1, 10.3.2|#]

Therefore, I went and looked at the JSF 
spec 1.1 as noted below. What should I be removing to clear this 
warning?

I checked my web.xml file and it does 
have:

context-paramparam-namejavax.faces.CONFIG_FILES/param-nameparam-value/WEB-INF/faces-config.xml/param-value/context-param 


Is it ok to remove this, since my 
faces-config.xml is in the /WEB-INF directory? I just want to 
double-check.

Thanks,

--Todd


JSF spec 1.1, 10.3.2:

At application startup time, before any requests are 
processed, the JSF implementation must process zero or more application 
configuration resources, located according to the following 
algorithm:

Search for all resources named 
"META-INF/faces-config.xml" in the ServletContext resource paths for this 
web application, and load each as a JSF configuration resource (in reverse 
order of the order in which they are returned by 
getResources()).

Check for the existence of a context initialization 
parameter named javax.faces.CONFIG_FILES. If it exists, treat it as a 
comma-delimited list of context relative resource paths (starting with a 
"/"), and load each of the specfied resources.

Check for the existence of a web application 
configuration resource named "/WEB-INF/faces-config.xml", and load it if the 
resource exists.

This algorithm provides considerable flexibility for 
developers that are assembling the components of a JSF-based web 
application. For example, an application might include one or more custom 
UIComponent implementations, along with associated Renderers, so it can 
declare them in an application resource named "/WEBINF/ faces-config.xml" 
with no need to programmatically register them with Application instance. In 
addition, the application might choose to include a component library 
(packaged as a JAR file) that includes a "META-INF/facesconfig. xml" 
resource. The existence of this resource causes components, renderers, and 
other JSF implementation classes that are stored in this library JAR file to 
be automatically registered, with no action required by the application. 
Chapter 10 Using JSF in Web Applications 10-11 XML parsing errors detected 
during the loading of an application resource file are fatal to application 
startup, and must cause the application to not be made available by the 
container. Whether or not a validating parse is performed is up to the JSF 
implementation; it is recommended that the JSF implementation provide a 
configuration parameter to control whether or not validation 
occurs.


RE: Warning: Please adjust your web.xml to use org.apache.myfaces.webapp.filter.ExtensionsFilter

2006-05-09 Thread Todd Patrick



I figured it out.

The library orderfor my project'sbuild path 
needed the tomahawk-1.1.2.jar before myfaces-core-1.1.3 
libraries.

Thanks,

--Todd



From: David G. Friedman 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 11:16 
AMTo: MyFaces DiscussionSubject: RE: Warning: Please 
adjust your web.xml to use 
org.apache.myfaces.webapp.filter.ExtensionsFilter

If it 
helps, I have that class file in my copy of the 1.1.3 Tomahawk SNAPSHOT 
download.

Regards,
David

  -Original Message-From: Todd Patrick 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, May 09, 2006 12:00 
  PMTo: MyFaces DiscussionSubject: Warning: Please adjust 
  your web.xml to use 
  org.apache.myfaces.webapp.filter.ExtensionsFilter
  I 
  have:
  
  myfaces-core-1.1.3
  tomahawk-1.1.2
  Sun Java System 
  Application Server 8.2
  
  I receive the 
  following warning when deploying my .war file:
  
  [#|2006-05-09T10:47:13.007-0500|WARNING|sun-appserver-pe8.2|org.apache.myfaces.component.html.util.ExtensionsFilter|_ThreadID=10;|Please 
  adjust your web.xml to use 
  org.apache.myfaces.webapp.filter.ExtensionsFilter|#]
  
  
  So, I checked the 
  my-faces-impl-1.1.3.jar and to my surprise there is no package for 
  "org.apache.myfaces.webapp.filter"???
  
  Only 
  "org.apache.myfaces.webapp", which has two class files:
  
  MyFacesServlet.class
  StartupServletContextListener.class
  
  What is the 
  correct ExtensionsFilter path to use for my web.xml under myfaces-core-1.1.3 and 
  tomahawk-1.1.2.
  
  Thanks,
  
  --Todd
  
  
  


Deploying causes: WARNING|sun-appserver-pe8.2|org.apache.commons.digester.Digester|_ThreadID=14 and empty JSF body

2006-05-09 Thread Todd Patrick
Sun Java System Application Server 8.2
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


[TWO ISSUES]

1.) When I deploy to Sun Java System Application Server 8.2 on a Sun
Solaris server, I receive the several WARNING messages listed below at
the end of the email.

Do I need a different version of commons-digester?

I made sure I don't have the following snippet in my web.xml file:

context-param
param-namejavax.faces.CONFIG_FILES/param-name
param-value/WEB-INF/faces-config.xml/param-value
/context-param


2.) Plus, my JSF isn't rendered at all.

I have a blank browser page and all that shows up in my HTML source is:

html
head
meta http-equiv=Content-Type content=text/html; charset=UTF-8

link href=tbrowser.css type=text/css rel=stylesheet/
link href=custom.css type=text/css rel=stylesheet/
link href=basic.css type=text/css rel=stylesheet/
title/title
/head
body
!-- MYFACES JAVASCRIPT --

script type=text/javascript!--
function getScrolling() {
var x = 0; var y = 0;
if (self.pageXOffset || self.pageYOffset) {
x = self.pageXOffset;
y = self.pageYOffset;
} else if ((document.documentElement 
document.documentElement.scrollLeft)||(document.documentElement 
document.documentElement.scrollTop)) {
x = document.documentElement.scrollLeft;
y = document.documentElement.scrollTop;
} else if (document.body) {
x = document.body.scrollLeft;
y = document.body.scrollTop;
}
return x + , + y;
}

//--/script

/body
/html


That's it, nothing else... When I deploy on Sun Java System Application
Server 8.2 on a Windows XP workstation, I have no issues at all.

I checked my build.xml file and it looks correct.

This is odd, so any feedback or suggestions are greatly appreciated.

Thanks,

--Todd


[WARNING MESSAGES]

[#|2006-05-09T13:29:01.456-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=14;|[ConverterRule]{faces-config/conv
erter} Merge(null,java.math.BigDecimal)|#]

[#|2006-05-09T13:29:01.459-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=14;|[ConverterRule]{faces-config/conv
erter} Merge(null,java.math.BigInteger)|#]

[#|2006-05-09T13:29:01.554-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=14;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlCommandButton)|#]

[#|2006-05-09T13:29:01.557-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=14;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlCommandLink)|#]

[#|2006-05-09T13:29:01.560-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=14;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlDataTable)|#]

[#|2006-05-09T13:29:01.563-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=14;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlInputHidden)|#]

[#|2006-05-09T13:29:01.566-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=14;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlInputSecret)|#]

[#|2006-05-09T13:29:01.569-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=14;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlInputText)|#]

[#|2006-05-09T13:29:01.572-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=14;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlInputTextHelp)|#]

[#|2006-05-09T13:29:01.574-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=14;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlInputTextarea)|#]

[#|2006-05-09T13:29:01.577-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=14;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlGraphicImage)|#]

[#|2006-05-09T13:29:01.580-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=14;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlMessage)|#]

[#|2006-05-09T13:29:01.583-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=14;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlMessages)|#]

[#|2006-05-09T13:29:01.586-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=14;|[ComponentRule]{faces-config/comp
onent} Merge(org.apache.myfaces.HtmlOutputLabel)|#]

[#|2006-05-09T13:29:01.589-0500|WARNING|sun-appserver-pe8.2|org.apache.c
ommons.digester.Digester|_ThreadID=14;|[ComponentRule]{faces-config/comp
onent} 

There is a string com.sun.faces.saveStateFieldMarker on my screen, even though my managed bean implements Serializable?

2006-05-09 Thread Todd Patrick



There is a string 
"com.sun.faces.saveStateFieldMarker" on my screen, even though my managed 
bean implements Serializable?

In my web.xml, I do 
have the context:

context-param 
param-namejavax.faces.STATE_SAVING_METHOD/param-name 
param-valueclient/param-value/context-param

Thoughts or 
suggestions are greatly appreciated.

Thanks,

--Todd



RE: There is a string com.sun.faces.saveStateFieldMarker on my screen, even though my managed bean implements Serializable?

2006-05-09 Thread Todd Patrick



Gary: Thank you, I'm running Sun Java System Application 
Server 8.2 and I'll check the classpath for the domain in the 
morning.

--Todd


From: Gary VanMatre 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 10:30 
PMTo: MyFaces DiscussionSubject: RE: There is a string 
"com.sun.faces.saveStateFieldMarker" on my screen, even though my managed bean 
implements Serializable?

From: "Todd Patrick" [EMAIL PROTECTED]  
Gary: Thank you.   What I am really confused about is how do I 
get to that information on:   
http://myfaces.apache.org/impl/apidocs/index.html   There is no 
clear link to the CONSTANTS information and examples of how to use  
them.   How do I properly use?   "" 

You don't direcly use them. They are markers that are written into 
the rendered output from the JSF form component. The Form and View JSP 
tags are required by the JSF runtime. The markeris then replaced 
witha hidden html inputtagthatis an 
encodedserialized representation of thecomponent's statefor 
the page.TheJSF viewtag does thisparsing. 


This trick is needed in JSF 1.1 because the JSP components build the 
component tree and invoke rendering versus building the entire tree and then 
invoking rendering.

Sinceyou areseeing thismakerin the page, 
itmost likey indicatesthat theSun RI Form component added it 
but the Myfaces View Tagwas looking for the other 
marker.Mostapp servers areprepackaged with theRI 
JSFjarsthat are self registering by the fact that they are in the 
classpath.

My guess isthat theJSF RI jars are in the classpath and you 
have amix of JSF runtimes. I've seen this with WAS 6 and I just had 
to delete the RI jars for the servers lib folder. 


Gary
 Thanks,   --Todd   
   From: Gary VanMatre 
[mailto:[EMAIL PROTECTED]  Sent: Tue 5/9/2006 4:55 PM  To: 
MyFaces Discussion  Subject: Re: There is a string 
"com.sun.faces.saveStateFieldMarker" on my  screen, even though my 
managed bean implements Serializable?From: "Todd 
Patrick" [EMAIL PROTECTED]  There is a string 
"com.sun.faces.saveStateFieldMarker" on my screen,  even though my 
managed bean implements Serializable?In my web.xml, 
I do have the context:   
javax.faces.STATE_SAVING_METHOD   
client
Thoughts or suggestions are greatly appreciated.   You have 
a mix of the myfaces runtime and th e RI r untime. The marker above is  
the RI marker. Myfaces uses a form marker of  "".   The ViewTag handles adding 
the hidden input state to the form in JSF 1.1.
Thanks,  --Todd   Gary   



RE: How do I properly use jsp:forward in MyFaces?

2006-05-05 Thread Todd Patrick



David: Yes, you can't tell?

:)

I've been reading Kito D. Mann's book JavaServer Faces In 
Action, which is good... but there are details that aren't 
clear.

SUN's api and impl lack the GUI library elements that my 
project requires.

I've been developing onlyserver side Java for a few 
years, so working on a client is sorta new at this point. I picked JSF due to 
the little work I've done with Swing, which the two have 
similarities.

I *greatly* appreciate everyone's help, that's for 
sure!

MyFaces has done things right.

Thanks,

--Todd


From: David G. Friedman 
[mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 12:49 
AMTo: MyFaces DiscussionSubject: RE: How do I properly use 
jsp:forward in MyFaces?

Todd,

From 
your various posts tonight, you seem to have a number of JSF concepts 
mixed. Is this your first Faces Webapp? (That is not meant to be an insult 
but a simple question) 

If 
your project folder looks like this as you indicated:


/transactionbrowser/
- 
WEB-INF
- 
resources
-index.jsp
-tbrowser.jsp

Then the various mappings you have posted over the past 
24 hours have often been incorrect. With this webapp, your main url would 
likely be:
http://127.0.0.1/transactionbrowser and you would 
expect it to invoke the welcome page /index.jsp. Your example index.jsp was listed 
as:


jsp:forward 
page="/faces/tbrowser.jsp"/

THAT is where your first make came from: your mappings. JSF is 
often taught using SUFFIX mapping so the urls such as /index.jsf are understood to be 
imaginary (no such file exists) allowing the servlet to map /index.jsf to compile the view from the jsp file /index.jsp. With prefix mapping the url "/index.jsf" would be equivalent to "/faces/index" see? When you switch to PREFIX mapping like 
having mappings start "/faces/whatever", you must 
skip the .jsp extension so your index.jsp file should contain:


jsp:forward 
page="/faces/tbrowser"/

Adding the .jsp suffix while using prefix 
mapping is causing your problem (that plus how your web.xml Servlet and Filter 
mappings are setup). I stronglyrecommend you to back to the myfaces blank.war and example war files to see how standard *.jsf suffix mapping works and begin your application with 
that style until you are positive you can make a working JSF application. 
It will save you time and effort since searching (the web or this lists's 
archives) on the *.jsf SUFFIX extension will result 
in a much greater number of relevant posts than if you use PREFIX "/faces/*" mapping.

Regards,
David Friedman / [EMAIL PROTECTED]

  -Original Message-From: Todd Patrick 
  [mailto:[EMAIL PROTECTED]Sent: Friday, May 05, 2006 1:15 
  AMTo: MyFaces DiscussionSubject: How do I properly use 
  jsp:forward in MyFaces?
  I have a project 
  folder that looks like:
  
  /transactionbrowser/
  - 
  WEB-INF
  - 
  resources
  -index.jsp
  -tbrowser.jsp
  
  
  With the 
  servlet-mapping of:
  
  filter 
  filter-nameMyFacesExtensionsFilter/filter-name 
  filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class 
  init-param 
  param-namemaxFileSize/param-name 
  param-value20m/param-value 
  /init-param/filterfilter-mapping 
  filter-nameMyFacesExtensionsFilter/filter-name 
  servlet-nameFaces 
  Servlet/servlet-name/filter-mappingfilter-mapping 
  filter-nameMyFacesExtensionsFilter/filter-name 
  url-pattern/faces/myFacesExtensionResource/*/url-pattern/filter-mapping
  
  servlet 
  servlet-nameFaces Servlet/servlet-name 
  servlet-classjavax.faces.webapp.FacesServlet/servlet-class 
  load-on-startup1/load-on-startup/servletservlet-mapping 
  servlet-nameFaces Servlet/servlet-name 
  url-pattern/faces/*/url-pattern/servlet-mapping
  
  
  The only URLs that 
  work are:
  
  http://127.0.0.1:8080/transactionbrowser/faces/tbrowser.jsp
  http://127.0.0.1:8080/transactionbrowser/faces/
  
  
  On my index.jsp I 
  have:
  
  jsp:forward 
  page="/faces/tbrowser.jsp"/
  
  
  So, when I go 
  to:
  
  http://127.0.0.1:8080/transactionbrowser/
  
  I see the page, 
  but not with the MyFaces rendering, I still plain control GUI components with 
  none of the add MyFaces filter files. How do I use jsp:forward properly to get 
  to:
  
  http://127.0.0.1:8080/transactionbrowser/faces/
  
  or
  
  http://127.0.0.1:8080/transactionbrowser/faces/tbrowser.jsp
  
  
  I can't use the 
  following since that doesn't run the MyFaces 
  servlet:
  
  jsp:forward 
  page="/transactionbrowser/faces/tbrowser.jsp"/
  
  
  Thoughts or 
  examples are appreciated.
  
  Thanks,
  
  --Todd
  
  


RE: How do I properly use jsp:forward in MyFaces?

2006-05-05 Thread Todd Patrick



OK, this is making sense;

I 
downloaded the blank.war file and I am installing it now - in the meantime, I 
went back and changed 

jsp:forward 
page="/faces/tbrowser.jsp"/

to:

jsp:forward 
page="/faces/tbrowser"/

Now, I receive:

HTTP Status 404 - 
/transactionbrowser/tbrowsertype Status 
reportmessage /transactionbrowser/tbrowserdescription The requested resource (/transactionbrowser/tbrowser) 
is not available.
Myservlet-mappingisstill:

filter 
filter-nameMyFacesExtensionsFilter/filter-name 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class 
init-param 
param-namemaxFileSize/param-name 
param-value20m/param-value 
/init-param/filterfilter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
servlet-nameFaces 
Servlet/servlet-name/filter-mappingfilter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
url-pattern/faces/myFacesExtensionResource/*/url-pattern/filter-mapping

servlet 
servlet-nameFaces Servlet/servlet-name 
servlet-classjavax.faces.webapp.FacesServlet/servlet-class 
load-on-startup1/load-on-startup/servletservlet-mapping 
servlet-nameFaces Servlet/servlet-name 
url-pattern/faces/*/url-pattern/servlet-mapping


Thanks,

--Todd



From: David G. Friedman 
[mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 12:49 
AMTo: MyFaces DiscussionSubject: RE: How do I properly use 
jsp:forward in MyFaces?

Todd,

From 
your various posts tonight, you seem to have a number of JSF concepts 
mixed. Is this your first Faces Webapp? (That is not meant to be an insult 
but a simple question) 

If 
your project folder looks like this as you indicated:


/transactionbrowser/
- 
WEB-INF
- 
resources
-index.jsp
-tbrowser.jsp

Then the various mappings you have posted over the past 
24 hours have often been incorrect. With this webapp, your main url would 
likely be:
http://127.0.0.1/transactionbrowser and you would 
expect it to invoke the welcome page /index.jsp. Your example index.jsp was listed 
as:


jsp:forward 
page="/faces/tbrowser.jsp"/

THAT is where your first make came from: your mappings. JSF is 
often taught using SUFFIX mapping so the urls such as /index.jsf are understood to be 
imaginary (no such file exists) allowing the servlet to map /index.jsf to compile the view from the jsp file /index.jsp. With prefix mapping the url "/index.jsf" would be equivalent to "/faces/index" see? When you switch to PREFIX mapping like 
having mappings start "/faces/whatever", you must 
skip the .jsp extension so your index.jsp file should contain:


jsp:forward 
page="/faces/tbrowser"/

Adding the .jsp suffix while using prefix 
mapping is causing your problem (that plus how your web.xml Servlet and Filter 
mappings are setup). I stronglyrecommend you to back to the myfaces blank.war and example war files to see how standard *.jsf suffix mapping works and begin your application with 
that style until you are positive you can make a working JSF application. 
It will save you time and effort since searching (the web or this lists's 
archives) on the *.jsf SUFFIX extension will result 
in a much greater number of relevant posts than if you use PREFIX "/faces/*" mapping.

Regards,
David Friedman / [EMAIL PROTECTED]

  -Original Message-From: Todd Patrick 
  [mailto:[EMAIL PROTECTED]Sent: Friday, May 05, 2006 1:15 
  AMTo: MyFaces DiscussionSubject: How do I properly use 
  jsp:forward in MyFaces?
  I have a project 
  folder that looks like:
  
  /transactionbrowser/
  - 
  WEB-INF
  - 
  resources
  -index.jsp
  -tbrowser.jsp
  
  
  With the 
  servlet-mapping of:
  
  filter 
  filter-nameMyFacesExtensionsFilter/filter-name 
  filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class 
  init-param 
  param-namemaxFileSize/param-name 
  param-value20m/param-value 
  /init-param/filterfilter-mapping 
  filter-nameMyFacesExtensionsFilter/filter-name 
  servlet-nameFaces 
  Servlet/servlet-name/filter-mappingfilter-mapping 
  filter-nameMyFacesExtensionsFilter/filter-name 
  url-pattern/faces/myFacesExtensionResource/*/url-pattern/filter-mapping
  
  servlet 
  servlet-nameFaces Servlet/servlet-name 
  servlet-classjavax.faces.webapp.FacesServlet/servlet-class 
  load-on-startup1/load-on-startup/servletservlet-mapping 
  servlet-nameFaces Servlet/servlet-name 
  url-pattern/faces/*/url-pattern/servlet-mapping
  
  
  The only URLs that 
  work are:
  
  http://127.0.0.1:8080/transactionbrowser/faces/tbrowser.jsp
  http://127.0.0.1:8080/transactionbrowser/faces/
  
  
  On my index.jsp I 
  have:
  
  jsp:forward 
  page="/faces/tbrowser.jsp"/
  
  
  So, when I go 
  to:
  
  http://127.0.0.1:8080/transactionbrowser/
  
  I see the page, 
  but not with the MyFaces rendering, I still plain control GUI components with 
  none of the add MyFaces filter files. How do I use jsp:forward properly to get 
  to:
  
  http://127.0.0.1:8080/transactionbrowser/faces/
  

blank.war file JavaScript error: getScrolling is not defined

2006-05-05 Thread Todd Patrick
I downloaded and deployed the blank.war file from
myfaces-1.1.1-examples.zip.

When I run blank.war, I receive the following error on the second page
when I click on the GO HOME link:

Error: getScrolling is not defined
Source File: http://127.0.0.1:8080/blank/helloWorld.jsf
Line: 1

Is this a bug or did I miss a step - I thought I just had to deploy
blank.war?

I'm running Sun Java System Application Server PE 8.

Thanks

--Todd


t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

2006-05-04 Thread Todd Patrick



t:panelTabbedPane: Is the serverSideTabSwitch 
attribute depreciated?

If it is, how do I 
toggle client-side/server-side tab switches?

Thanks,

--Todd


RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

2006-05-04 Thread Todd Patrick
I keep receiving the following error message:

compile-jsps:
org.apache.jasper.JasperException:  Attribute serverSideTabSwitch
invalid for tag panelTabbedPane according to TLD
C:/javaworkspace/petroadmin/transactionbrowser/build/web/tbrowser.jsp(87
,16)
C:\javaworkspace\petroadmin\transactionbrowser\nbproject\build-impl.xml:
328: Java returned: 1
BUILD FAILED (total time: 4 seconds)

Thanks,

--Todd

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 12:00 PM
To: MyFaces Discussion
Subject: Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote:
 t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

No, it's not.  Do you have reason to believe otherwise?


1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Todd Patrick



I downloaded 1.1.3 
Nightly build and I am trying to configure my web.xml file as 
such:

?xml version="1.0" encoding="UTF-8"?web-app 
version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" 
context-param 
param-namecom.sun.faces.verifyObjects/param-name 
param-valuetrue/param-value 
/context-param 
context-param 
param-namecom.sun.faces.validateXml/param-name 
param-valuetrue/param-value 
/context-param 
context-param 
param-namejavax.faces.CONFIG_FILES/param-name 
param-value/WEB-INF/faces-config.xml/param-value 
/context-param 
context-param 
param-namejavax.faces.STATE_SAVING_METHOD/param-name 
param-valueclient/param-value 
/context-param 
context-param 
param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name 
param-valuefalse/param-value 
/context-param 
servlet 
servlet-nameFaces 
Servlet/servlet-name 
servlet-classjavax.faces.webapp.FacesServlet/servlet-class 
load-on-startup1/load-on-startup 
/servlet 
servlet-mapping 
servlet-nameFaces 
Servlet/servlet-name 
url-pattern/transactionbrowser/*/url-pattern 
/servlet-mapping 
session-config 
session-timeout 
30 
/session-timeout 
/session-config 
welcome-file-list 
welcome-file 
index.jsp 
/welcome-file 
/welcome-file-list !-- Extensions Filter 
-- 
filter 
filter-nameMyFacesExtensionsFilter/filter-name 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class 
init-param 
param-namemaxFileSize/param-name 
param-value20m/param-value 
/init-param /filter 
filter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
servlet-nameFaces Servlet/servlet-name 
/filter-mapping 
filter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
url-pattern/transactionbrowser/*/url-pattern 
/filter-mapping/web-app


However, I keep 
receiving the error message:

java.lang.IllegalStateException: ExtensionsFilter not correctly 
configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html


I found a similar 
thread about 1.1.2, however how do I fix this issue in 
1.1.3?

I am using Sun Java 
System Application Server 8.2

Thanks,

--Todd


RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Todd Patrick
Thank you for the suggestion!

This didn't work either... The error keeps saying:

java.lang.IllegalStateException: ExtensionsFilter not correctly
configured. JSF mapping missing. JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html

I even tried to add:
 
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
  url-pattern*.jsf/url-pattern
/filter-mapping

That's didn't work either.

?xml version=1.0 encoding=UTF-8?
web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
context-param
param-namecom.sun.faces.verifyObjects/param-name
param-valuetrue/param-value
/context-param
context-param
param-namecom.sun.faces.validateXml/param-name
param-valuetrue/param-value
/context-param
context-param
param-namejavax.faces.CONFIG_FILES/param-name
param-value/WEB-INF/faces-config.xml/param-value
/context-param
context-param
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueclient/param-value
/context-param
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/transactionbrowser/*/url-pattern
/servlet-mapping
session-config
session-timeout
30
/session-timeout
/session-config
welcome-file-list
welcome-file
index.jsp
/welcome-file
/welcome-file-list
!-- Extensions Filter --
filter
filter-nameMyFacesExtensionsFilter/filter-name
 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-
class
init-param
param-namemaxFileSize/param-name
param-value20m/param-value
/init-param
/filter
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
servlet-nameFaces Servlet/servlet-name
/filter-mapping
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
url-pattern/myFacesExtensionResource/*/url-pattern
/filter-mapping
/web-app


Thanks,

--Todd

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 2:57 PM
To: MyFaces Discussion
Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException:
ExtensionsFilter not correctly configured. JSF mapping missing. JSF
pages not covered.

On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote:
 url-pattern/transactionbrowser/myFacesExtensionResource/*/url-patte
 rn

No, it's

url-pattern/myFacesExtensionResource/*/url-pattern


RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Todd Patrick
Thank you, I tired that as well.

Is there a bug in the 1.1.3 nightly build?

Thanks,

--Todd

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 3:09 PM
To: MyFaces Discussion
Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException:
ExtensionsFilter not correctly configured. JSF mapping missing. JSF
pages not covered.

Todd Patrick schrieb:
  
 url-pattern/transactionbrowser/myFacesExtensionResource/*/url-patte
 rn
   
No, its

/faces/myFacesExtensionResource/*

as stated in the documentation. The url-pattern will always be relative
to the context.

Ciao,
Mario




RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Todd Patrick
Is it a problem that my Faces servlet mapping is:

servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/transactionbrowser/*/url-pattern
/servlet-mapping

Should it be?:

   servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern*.jsf/url-pattern
/servlet-mapping

I need to read up on servlet-mappings.

Thanks,

--Todd

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 3:15 PM
To: MyFaces Discussion
Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException:
ExtensionsFilter not correctly configured. JSF mapping missing. JSF
pages not covered.

You're making it harder than it has to be :)

There are two required mappings.

One has to be absolute and has to look exactly like this.  It should
probably be your first filter-mapping for performance reasons.   (I
had assumed you'd copied it verbatim, but I see that's now not the
case).

!-- extension mapping for serving page-independent resources
(javascript, stylesheets, images, etc.)  -- filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
url-pattern/faces/myFacesExtensionResource/*/url-pattern
/filter-mapping

The second mapping must match your Faces servlet mapping.

The easiest way to do that is to use:

!-- extension mapping for adding script/, link/, and other resource
tags to JSF-pages  -- filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
!-- servlet-name must match the name of your
javax.faces.webapp.FacesServlet entry --
servlet-nameFaces Servlet/servlet-name /filter-mapping


Your best bet is to literally copy these settings from the web page
and add them to your web.xml file exactly as they appear.   As long as
your servlet name and facelets name are the same elsewhere (which they
appear to be), that's all that's required.


RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Todd Patrick
This is so frustrating... I really appreciate your help.

These changes still are unsuccessful, I've tried each suggestion and
Googled on the topic as well with no success.

My web.xml file is now:

?xml version=1.0 encoding=UTF-8?
web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
context-param
param-namecom.sun.faces.verifyObjects/param-name
param-valuetrue/param-value
/context-param
context-param
param-namecom.sun.faces.validateXml/param-name
param-valuetrue/param-value
/context-param
context-param
param-namejavax.faces.CONFIG_FILES/param-name
param-value/WEB-INF/faces-config.xml/param-value
/context-param
context-param
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueclient/param-value
/context-param
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/transactionbrowser/*/url-pattern
/servlet-mapping
session-config
session-timeout
30
/session-timeout
/session-config
welcome-file-list
welcome-file
index.jsp
/welcome-file
/welcome-file-list
!-- Extensions Filter --
filter
filter-nameMyFacesExtensionsFilter/filter-name
 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-
class
init-param
param-namemaxFileSize/param-name
param-value20m/param-value
/init-param
/filter
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
url-pattern/faces/myFacesExtensionResource/*/url-pattern
/filter-mapping
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
servlet-nameFaces Servlet/servlet-name
/filter-mapping
/web-app


Thanks,

--Todd 

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 3:27 PM
To: MyFaces Discussion
Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException:
ExtensionsFilter not correctly configured. JSF mapping missing. JSF
pages not covered.

On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote:
 Is it a problem that my Faces servlet mapping is:
 url-pattern/transactionbrowser/*/url-pattern
[vs]
 url-pattern*.jsf/url-pattern


No, the beauty of using a servlet-name filter mapping is that it
doesn't matter how you specify your servlet mapping.   And changes to
your servlet mapping are automatically picked up by the filter mapping.

 filter-nameMyFacesExtensionsFilter/filter-name
 javax.faces.webapp.FacesServlet entry --
 servlet-nameFaces Servlet/servlet-name /filter-mapping


RE: 1.1.3 returns the error: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.

2006-05-04 Thread Todd Patrick
Thank you, I looked at that as well...

Would you provide an example of how you set-up your web.xml file?

Thanks,

--Todd 

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 3:47 PM
To: MyFaces Discussion
Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException:
ExtensionsFilter not correctly configured. JSF mapping missing. JSF
pages not covered.

Hi Todd!
 context-param

 param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name
 param-valuefalse/param-value
 /context-param

Given that you already told the system to disable this filter check I
bet that the web.xml you edit is not the used by tomcat. Just a wild
guess, dont get it personal :-) - its something happend here now and
then when the deployment didnt do what I expected it to do.
Do you use somethink like a exploded tomcat directory, or a
eclipse/idea whatever automatic deployment?
If so, please look at the exploded web.xml.

Ciao,
Mario



RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

2006-05-04 Thread Todd Patrick
I am now using 1.1.3 Nightly Build - but now that is causing issues with
defining my filters in my web.xml file.

Thanks,

--Todd 

-Original Message-
From: Julian Ray [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 4:18 PM
To: 'MyFaces Discussion'
Subject: RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

I think I had the same problem a while back until I switched to the
latest tomahawk build. This attribute appears to have been added in a
later version. Which version of Tomahawk are you using?

-Original Message-
From: Todd Patrick [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 1:37 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

I keep receiving the following error message:

compile-jsps:
org.apache.jasper.JasperException:  Attribute serverSideTabSwitch
invalid for tag panelTabbedPane according to TLD
C:/javaworkspace/petroadmin/transactionbrowser/build/web/tbrowser.jsp(87
,16)
C:\javaworkspace\petroadmin\transactionbrowser\nbproject\build-impl.xml:
328: Java returned: 1
BUILD FAILED (total time: 4 seconds)

Thanks,

--Todd

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 12:00 PM
To: MyFaces Discussion
Subject: Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote:
 t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

No, it's not.  Do you have reason to believe otherwise?



RE: t:panelTabbedPane: Is the serverSideTabSwitch attribute depreciated?

2006-05-04 Thread Todd Patrick
Mike: Would you please provide a copy of your web.xml file?

I've wasted three hours on this... so, any examples are appreciated.

Thanks,

--Todd 

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 4:34 PM
To: MyFaces Discussion
Subject: Re: t:panelTabbedPane: Is the serverSideTabSwitch attribute
depreciated?

On 5/4/06, Todd Patrick [EMAIL PROTECTED] wrote:
 I am now using 1.1.3 Nightly Build - but now that is causing issues 
 with defining my filters in my web.xml file.

Actually, that's an indication that they were never working in the first
place rather than a new problem.  I've been using the same
web.xml file settings for several months now.   The difference is that
1.1.3 now verifies that things are set up correctly.


I just don't understand why filters doesn't work...

2006-05-04 Thread Todd Patrick



This can't be 
hard... I've wasted close to *four* hours on this. I've been fortunate that I've 
had some really great people help me. However, I still can't get past 
the following error:

javax.servlet.ServletException: ExtensionsFilter not correctly 
configured. JSF mapping missing. JSF pages not covered.

Set-up:

App Server: Sun Java 
System Application Server PE 8
Libraries: 
myfaces-api-1.1.2.jar, myfaces-impl-1.1.2.jar, tomahawk.jar and 
tomahawk-1.1.3-SNAPSHOT.jar

Here is my web.xml 
file:

?xml 
version="1.0" encoding="UTF-8"?web-app version="2.4" 
xmlns="http://java.sun.com/xml/ns/j2ee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" 
context-param 
param-namecom.sun.faces.verifyObjects/param-name 
param-valuetrue/param-value 
/context-param 
context-param 
param-namecom.sun.faces.validateXml/param-name 
param-valuetrue/param-value 
/context-param 
context-param 
param-namejavax.faces.CONFIG_FILES/param-name 
param-value/WEB-INF/faces-config.xml/param-value 
/context-param 
context-param 
param-namejavax.faces.STATE_SAVING_METHOD/param-name 
param-valueclient/param-value 
/context-param 
context-param 
param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name 
param-valuetrue/param-value 
/context-param 
servlet 
servlet-nameFaces 
Servlet/servlet-name 
servlet-classjavax.faces.webapp.FacesServlet/servlet-class 
load-on-startup1/load-on-startup 
/servlet 
servlet-mapping 
servlet-nameFaces 
Servlet/servlet-name 
url-pattern/faces/*/url-pattern 
/servlet-mapping 
filter 
filter-nameMyFacesExtensionsFilter/filter-name 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class 
init-param 
param-namemaxFileSize/param-name 
param-value20m/param-value 
/init-param /filter 
filter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
servlet-nameFaces Servlet/servlet-name 
/filter-mapping 
filter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
url-pattern/faces/myFacesExtensionResource/*/url-pattern 
/filter-mapping 
session-config 
session-timeout 
30 
/session-timeout 
/session-config 
welcome-file-list 
welcome-file 
index.jsp 
/welcome-file 
/welcome-file-list/web-app


Entire error 
message:
javax.servlet.ServletException: ExtensionsFilter not correctly 
configured. JSF mapping missing. JSF pages not covered. Please see: 
http://myfaces.apache.org/tomahawk/extensionsFilter.html	javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)	sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	java.lang.reflect.Method.invoke(Method.java:585)	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)	java.security.AccessController.doPrivileged(Native 
Method)	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)	java.security.AccessController.doPrivileged(Native 
Method)	java.security.AccessController.doPrivileged(Native 
Method)	org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:675)	org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:642)	org.apache.jsp.index_jsp._jspService(index_jsp.java:118)	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)	javax.servlet.http.HttpServlet.service(HttpServlet.java:860)	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)	javax.servlet.http.HttpServlet.service(HttpServlet.java:860)	sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	java.lang.reflect.Method.invoke(Method.java:585)	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)	java.security.AccessController.doPrivileged(Native 
Method)	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)


root cause 
java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
	org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)
	org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:333)
	

RE: I just don't understand why filters doesn't work...

2006-05-04 Thread Todd Patrick



Well, my file extensions are .jsp not 
.jsf.

Or have I done something wrong?(Come to think about 
it, I really don't stand that just yet, I need to google 
this.)

Thanks,

--Todd


From: David G. Friedman 
[mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 5:30 
PMTo: MyFaces DiscussionSubject: RE: I just don't 
understand why filters doesn't work...

Todd,

Why 
did you remove these two recommendedmappings:

servlet-mapping 
servlet-nameFaces 
Servlet/servlet-name 
url-pattern*.jsf/url-panner
/servlet-mapping

And:

filter-mapping 
filter-nameextensionsFilter/filter-name 
url-pattern*.jsf/url-pattern/filter-mapping

Regards,
David

  -Original Message-From: Todd Patrick 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, May 04, 2006 6:19 
  PMTo: MyFaces DiscussionSubject: I just don't understand 
  why filters doesn't work...
  This can't be 
  hard... I've wasted close to *four* hours on this. I've been fortunate that 
  I've had some really great people help me. However, I still can't get 
  past the following error:
  
  javax.servlet.ServletException: ExtensionsFilter not correctly 
  configured. JSF mapping missing. JSF pages not covered.
  
  Set-up:
  
  App Server: Sun 
  Java System Application Server PE 8
  Libraries: 
  myfaces-api-1.1.2.jar, myfaces-impl-1.1.2.jar, tomahawk.jar and 
  tomahawk-1.1.3-SNAPSHOT.jar
  
  Here is my web.xml 
  file:
  
  ?xml 
  version="1.0" encoding="UTF-8"?web-app version="2.4" 
  xmlns="http://java.sun.com/xml/ns/j2ee" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" 
  context-param 
  param-namecom.sun.faces.verifyObjects/param-name 
  param-valuetrue/param-value 
  /context-param 
  context-param 
  param-namecom.sun.faces.validateXml/param-name 
  param-valuetrue/param-value 
  /context-param 
  context-param 
  param-namejavax.faces.CONFIG_FILES/param-name 
  param-value/WEB-INF/faces-config.xml/param-value 
  /context-param 
  context-param 
  param-namejavax.faces.STATE_SAVING_METHOD/param-name 
  param-valueclient/param-value 
  /context-param 
  context-param 
  param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name 
  param-valuetrue/param-value 
  /context-param 
  servlet 
  servlet-nameFaces 
  Servlet/servlet-name 
  servlet-classjavax.faces.webapp.FacesServlet/servlet-class 
  load-on-startup1/load-on-startup 
  /servlet 
  servlet-mapping 
  servlet-nameFaces 
  Servlet/servlet-name 
  url-pattern/faces/*/url-pattern 
  /servlet-mapping 
  filter 
  filter-nameMyFacesExtensionsFilter/filter-name 
  filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class 
  init-param 
  param-namemaxFileSize/param-name 
  param-value20m/param-value 
  /init-param 
  /filter 
  filter-mapping 
  filter-nameMyFacesExtensionsFilter/filter-name 
  servlet-nameFaces Servlet/servlet-name 
  /filter-mapping 
  filter-mapping 
  filter-nameMyFacesExtensionsFilter/filter-name 
  url-pattern/faces/myFacesExtensionResource/*/url-pattern 
  /filter-mapping 
  session-config 
  session-timeout 
  30 
  /session-timeout 
  /session-config 
  welcome-file-list 
  welcome-file 
  index.jsp 
  /welcome-file 
  /welcome-file-list/web-app
  
  
  Entire error 
  message:
  javax.servlet.ServletException: ExtensionsFilter not correctly 
  configured. JSF mapping missing. JSF pages not covered. Please see: 
  http://myfaces.apache.org/tomahawk/extensionsFilter.htmljavax.faces.webapp.FacesServlet.service(FacesServlet.java:152)sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
  Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:585)org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)java.security.AccessController.doPrivileged(Native 
  Method)javax.security.auth.Subject.doAsPrivileged(Subject.java:517)org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)java.security.AccessController.doPrivileged(Native 
  Method)java.security.AccessController.doPrivileged(Native 
  Method)org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:675)org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:642)org.apache.jsp.index_jsp._jspService(index_jsp.java:118)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)javax.servlet.http.HttpServlet.service(HttpServlet.java:860)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)javax.servlet.http.HttpServlet.service(HttpServlet.java:860)s

MyFaces seem to only work with one servlet-mapping set-up only in a web.xml file?

2006-05-04 Thread Todd Patrick



I have the following 
currentservlet-mapping that works:

filter 
filter-nameMyFacesExtensionsFilter/filter-name 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class 
init-param 
param-namemaxFileSize/param-name 
param-value20m/param-value 
/init-param/filterfilter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
servlet-nameFaces 
Servlet/servlet-name/filter-mappingfilter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
url-pattern/faces/myFacesExtensionResource/*/url-pattern/filter-mapping

servlet 
servlet-nameFaces Servlet/servlet-name 
servlet-classjavax.faces.webapp.FacesServlet/servlet-class 
load-on-startup1/load-on-startup/servletservlet-mapping 
servlet-nameFaces Servlet/servlet-name 
url-pattern/faces/*/url-pattern/servlet-mapping

The only way I can 
develop or test my application is with the following URL:

http://127.0.0.1:8080/transactionbrowser/faces/

I'd like to just 
have the URL:
http://127.0.0.1:8080/transactionbrowser/


If I change the 
servlet-mapping to:

filter 
filter-nameMyFacesExtensionsFilter/filter-name 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class 
init-param 
param-namemaxFileSize/param-name 
param-value20m/param-value 
/init-param/filterfilter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
servlet-nameFaces 
Servlet/servlet-name/filter-mappingfilter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
url-pattern/transactionbrowser/myFacesExtensionResource/*/url-pattern/filter-mapping

servlet 
servlet-nameFaces Servlet/servlet-name 
servlet-classjavax.faces.webapp.FacesServlet/servlet-class 
load-on-startup1/load-on-startup/servletservlet-mapping 
servlet-nameFaces Servlet/servlet-name 
url-pattern/transactionbrowser/*/url-pattern/servlet-mapping

I receive the 
following error message:

javax.servlet.ServletException: No faces 
context?!


What am I not 
understanding (again...)?

Thanks,

--Todd

Full 
Error:
javax.servlet.jsp.JspException: No faces context?!
	org.apache.myfaces.taglib.core.LoadBundleTag.doStartTag(LoadBundleTag.java:74)
	org.apache.jsp.tbrowser_jsp._jspx_meth_f_loadBundle_0(tbrowser_jsp.java:197)
	org.apache.jsp.tbrowser_jsp._jspService(tbrowser_jsp.java:105)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
	sun.reflect.GeneratedMethodAccessor328.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
	java.security.AccessController.doPrivileged(Native Method)
	java.security.AccessController.doPrivileged(Native Method)
	org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:675)
	org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:642)
	org.apache.jsp.index_jsp._jspService(index_jsp.java:118)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)


How can *jsf be used in a servlet-mapping URL?

2006-05-04 Thread Todd Patrick



Anytime I've tried 
to use *jsf in my url-pattern value:

servlet 
servlet-nameFaces Servlet/servlet-name 
servlet-classjavax.faces.webapp.FacesServlet/servlet-class 
load-on-startup1/load-on-startup/servletservlet-mapping 
servlet-nameFaces Servlet/servlet-name 
url-pattern*.jsf/url-pattern/servlet-mapping

I've seen this 
example several places, do I need to name my files with a *.jsf 
extension?

How would using this 
url-pattern affect the following filter definition, would I change the 
url-pattern to *.jsf for MyFacesExtensionsFilter as well?

filter 
filter-nameMyFacesExtensionsFilter/filter-name 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class 
init-param 
param-namemaxFileSize/param-name 
param-value20m/param-value 
/init-param/filterfilter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
servlet-nameFaces 
Servlet/servlet-name/filter-mappingfilter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
url-pattern/transactionbrowser/myFacesExtensionResource/*/url-pattern/filter-mapping

Thanks,

--Todd


How do I properly use jsp:forward in MyFaces?

2006-05-04 Thread Todd Patrick



I have a project 
folder that looks like:

/transactionbrowser/
- 
WEB-INF
- 
resources
-index.jsp
-tbrowser.jsp


With the 
servlet-mapping of:

filter 
filter-nameMyFacesExtensionsFilter/filter-name 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class 
init-param 
param-namemaxFileSize/param-name 
param-value20m/param-value 
/init-param/filterfilter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
servlet-nameFaces 
Servlet/servlet-name/filter-mappingfilter-mapping 
filter-nameMyFacesExtensionsFilter/filter-name 
url-pattern/faces/myFacesExtensionResource/*/url-pattern/filter-mapping

servlet 
servlet-nameFaces Servlet/servlet-name 
servlet-classjavax.faces.webapp.FacesServlet/servlet-class 
load-on-startup1/load-on-startup/servletservlet-mapping 
servlet-nameFaces Servlet/servlet-name 
url-pattern/faces/*/url-pattern/servlet-mapping


The only URLs that 
work are:

http://127.0.0.1:8080/transactionbrowser/faces/tbrowser.jsp
http://127.0.0.1:8080/transactionbrowser/faces/


On my index.jsp I 
have:

jsp:forward 
page="/faces/tbrowser.jsp"/


So, when I go 
to:

http://127.0.0.1:8080/transactionbrowser/

I see the page, but 
not with the MyFaces rendering, I still plain control GUI components with none 
of the add MyFaces filter files. How do I use jsp:forward properly to get 
to:

http://127.0.0.1:8080/transactionbrowser/faces/

or

http://127.0.0.1:8080/transactionbrowser/faces/tbrowser.jsp


I can't use the 
following since that doesn't run the MyFaces 
servlet:

jsp:forward 
page="/transactionbrowser/faces/tbrowser.jsp"/


Thoughts or examples 
are appreciated.

Thanks,

--Todd




t:collapsiblePanel tlddoc is not current and simple example not working?

2006-05-03 Thread Todd Patrick



At: http://myfaces.apache.org/tomahawk/tlddoc/index.html

The information for 
t:collapsiblePanel is missing information for the 'collapsed' 
attribute.

In this simple 
example:

h:form 
id="tbForm" t:collapsiblePanel id="parentPanel" 
collapsed="false" f:facet 
name="header" 
t:div 
style="width:500px;background-color:#CC;" 
h:outputText 
value="Person"/ 
/t:div 
/f:facet f:facet 
name="closedContent" 
h:outputText 
value="closed"/ 
/f:facet 
h:panelGrid 
h:inputText id="search" size="30" 
maxlength="30"/ 
/h:panelGrid 
/t:collapsiblePanel/h:form

Generates the 
following HTML:

form 
id="tbForm" method="post" 
action="" 
enctype="application/x-www-form-urlencoded"diva 
id="tbForm:parentPanelToggleCollapsed" href="" 
#957;/adivtabletbodytrtdinput 
id="tbForm:search" type="text" name="tbForm:search" value="" maxlength="30" 
size="30" 
//td/tr/tbody/table/div/divinput 
type="hidden" name="com.sun.faces.VIEW" id="com.sun.faces.VIEW" value="..." 
/input type="hidden" name="tbForm" value="tbForm" /input 
type="hidden" name="tbForm:_idcl" /script 
type="text/_javascript_"!--function 
clearFormHiddenParams_tbForm(curFormName) { var curForm = 
document.forms[curFormName];curForm.elements['tbForm:_idcl'].value = 
null;}//--/script/form


1.) Why does the 
link always displayed with '#957;'?

2.) Click on this 
link submits the page, but does not collapse the div or displays the 
h:outputText in the closedContent h:facet?

Any suggestions 
would be greatly appreciated.

I am using the SUN 
JSF 1.1 api and impl jars with the tomahawk.jar.

Thanks,

--Todd






t:collapsiblePanel tlddoc is not current and simple example not working?

2006-05-03 Thread Todd Patrick



At: http://myfaces.apache.org/tomahawk/tlddoc/index.html

The information for 
t:collapsiblePanel is missing information for the 'collapsed' 
attribute.

In this simple 
example:

h:form 
id="tbForm" t:collapsiblePanel id="parentPanel" 
collapsed="false" f:facet 
name="header" 
t:div 
style="width:500px;background-color:#CC;" 
h:outputText 
value="Person"/ 
/t:div 
/f:facet f:facet 
name="closedContent" 
h:outputText 
value="closed"/ 
/f:facet 
h:panelGrid 
h:inputText id="search" size="30" 
maxlength="30"/ 
/h:panelGrid 
/t:collapsiblePanel/h:form

Generates the 
following HTML:

form 
id="tbForm" method="post" 
action="" 
enctype="application/x-www-form-urlencoded"diva 
id="tbForm:parentPanelToggleCollapsed" href="" 
#957;/adivtabletbodytrtdinput 
id="tbForm:search" type="text" name="tbForm:search" value="" maxlength="30" 
size="30" 
//td/tr/tbody/table/div/divinput 
type="hidden" name="com.sun.faces.VIEW" id="com.sun.faces.VIEW" value="..." 
/input type="hidden" name="tbForm" value="tbForm" /input 
type="hidden" name="tbForm:_idcl" /script 
type="text/_javascript_"!--function 
clearFormHiddenParams_tbForm(curFormName) { var curForm = 
document.forms[curFormName];curForm.elements['tbForm:_idcl'].value = 
null;}//--/script/form


1.) Why does the 
link always displayed with '#957;'?

2.) Click on this 
link submits the page, but does not collapse the div or displays the 
h:outputText in the closedContent h:facet?

Any suggestions 
would be greatly appreciated.

I am using the SUN 
JSF 1.1 api and impl jars with the tomahawk.jar.

Thanks,

--Todd






  1   2   >