RE: tree3 component reload

2005-07-22 Thread Dennis Byrne
I'm getting the same behavior as both of you.  I get it with 
@action and @actionListener .  I get it with the HEAD branch 
and 1.0.9 .  I get it when I add nodes and remove nodes.

I'll take a look this weekend.  If there aren't any bright 
ideas between now and next week, I'll open a bug so that we 
can discuss this at the "tree2 summit" .

 Original message 
>Date: Fri, 22 Jul 2005 17:44:40 -0400
>From: "Vo, Ky" <[EMAIL PROTECTED]>  
>Subject: RE: tree3 component reload  
>To: "'MyFaces Discussion'" 
>
>Hi,
>
>I had the exact problem using tree2.  I started to play 
around with the
>setValue method from HtmlTree.  It seems to do the trick.  
The only problem
>is the initial click to process the actionListener.  (I'm 
still trying to
>solve this problem (bug?))  After going to load my initial 
tree, I click on
>a node to process the actionListener.  It seems to be 
reloading the initial
>tree again after I click on the node and it doesn't expand 
the node.  After
>that initial click on the tree, the actionListener works 
like its supposed
>to and adds children to the tree with every click.  
Maybe "value="#{treeBacker.treeData" ... >" is not being set 
correctly on the
>initial load of the page.  Do I somehow need to do a 
setValue in my
>treeData() method like in the processAction method for the 
actionListener?
>
>-Ky
>
>Here's the code I used:
>
>In JSP
>-
>  var="node" varNodeToggler="t"
>clientSideToggle="false" showRootNode="false">
>   
>   
>   action="#{t.toggleExpanded}">
>   
type="com.x.TreeBackerListener"/>
>   
value="/images/yellow-folder-open.png"
>   
>rendered="#{t.nodeExpanded}" border="0" />
>   
value="/images/yellow-folder-closed.png"
>   
>rendered="#{!t.nodeExpanded}" border="0" />
>   
>   value="#{node.description}" styleClass="nodeFolder" />
>   
>   
>   
>
>In class TreeBackerListener
>
>public class StudyDBTreeListener implements ActionListener {
>
>   public TreeNode treeData() {
>   TreeNode treeData = new TreeNodeBase("tree-
type", "Tree
>Description", true);
>   
>   TreeNode newNode = new TreeNodeBase("tree-
type",
>"Description", "Identifier", true);
>   treeData.getChildren().add(addModelNode);
>
>   return treeData;
>   }
>
>   public void processAction(ActionEvent actionEvent) {
>
>   UIComponent component = 
actionEvent.getComponent();
>   UIComponent parent = component.getParent
().getParent();
>
>   HtmlTree tree = (HtmlTree) parent;
>
>   TreeNode treeData = tree.getNode();
>   String treeType = treeData.getType();
>   
>   //Important to check to see if node has any 
children.
>   //Without the children check, it adds the 
same childen to
>the 
>   //node over again (if this is what you want 
then take out
>the
>   //child count check.
>   if(treeType.equals("tree-type") && 
treeData.getChildCount()
>== 0){
>
>   TreeNode newNode = new TreeNodeBase
("tree-type",
>"description", 
>   "identifier", 
true);
>   treeData.getChildren().add(newNode);
>
>   }
>
>   TreeNode treeDataRoot = (TreeNode) 
tree.getValue();
>   tree.setValue(treeDataRoot);
>   
>   }
>}
>
>-Original Message-
>From: Edwin Mercado [mailto:[EMAIL PROTECTED] 
>Sent: Friday, July 22, 2005 1:43 PM
>To: MyFaces Discussion
>Subject: RE: tree3 component reload
>
>
>Here's the action listener for the add child node
>command link:
>
> public void createProArgumentationNode(ActionEvent event)
> {
>  ArgumentationNode child = createNode();
>  ArgumentationNode parent = getCurrentNode();
>  addEdge(child, parent, true);
>
>  /* view updated model data */ 
>  focusNode(event, child);
>  toggleSelectedNode();
>
> }
>loadTreeData() gets called twice by the getTreeData()
>BEFORE the addition of the new node and once AFTER.
>Apparently, the tree model is updated with the previous 
(old) data.
>
>Edwin
>-Original Message-
>From: Dennis Byrne [mailto:[EMAIL PROTECTED]
>Sent: Friday, July 22, 2005 4:34 PM
>To: MyFaces Discussion
>Subject: Re: tree3 component reload
>
>
>Can you post the code for your action listener?  I'm curious 
>to see if loadTreeData() is being called after or before you 
>updating the tree model.
>
> Original message 
>>Date: Fri, 22 Jul 2005 15:40:22 -0400
>>From: Edwin Mercado <[EMAIL PROTECTED]>
>>Subject: tree3 component reload  

Selected values of ...

2005-07-22 Thread fabio quimbay
Greetings, ...

This is a part of my JSP page:

...

   

...

And in my Backing Bean:

...
public void handleCountryDepartments(ValueChangeEvent event) {
   Object listbox = event.getNewValue();
}

the listbox Object has a the values [30, 13], but I can't accede to
its positions; I explain myself, I can't do:

  ...
  List countryDepartmentsId = event.getComponent().getChildren();
  HtmlSelectManyListbox listbox = (HtmlSelectManyListbox)event.getNewValue();
  ...

I don't know how acceding to those values. How I can do it ? Thanks
for your help ...
-- 
fabio quimbay


RE: tree3 component reload

2005-07-22 Thread Vo, Ky
Hi,

I had the exact problem using tree2.  I started to play around with the
setValue method from HtmlTree.  It seems to do the trick.  The only problem
is the initial click to process the actionListener.  (I'm still trying to
solve this problem (bug?))  After going to load my initial tree, I click on
a node to process the actionListener.  It seems to be reloading the initial
tree again after I click on the node and it doesn't expand the node.  After
that initial click on the tree, the actionListener works like its supposed
to and adds children to the tree with every click.  Maybe "" is not being set correctly on the
initial load of the page.  Do I somehow need to do a setValue in my
treeData() method like in the processAction method for the actionListener?

-Ky

Here's the code I used:

In JSP
-













In class TreeBackerListener

public class StudyDBTreeListener implements ActionListener {

public TreeNode treeData() {
TreeNode treeData = new TreeNodeBase("tree-type", "Tree
Description", true);

TreeNode newNode = new TreeNodeBase("tree-type",
"Description", "Identifier", true);
treeData.getChildren().add(addModelNode);

return treeData;
}

public void processAction(ActionEvent actionEvent) {

UIComponent component = actionEvent.getComponent();
UIComponent parent = component.getParent().getParent();

HtmlTree tree = (HtmlTree) parent;

TreeNode treeData = tree.getNode();
String treeType = treeData.getType();

//Important to check to see if node has any children.
//Without the children check, it adds the same childen to
the 
//node over again (if this is what you want then take out
the
//child count check.
if(treeType.equals("tree-type") && treeData.getChildCount()
== 0){

TreeNode newNode = new TreeNodeBase("tree-type",
"description", 
"identifier", true);
treeData.getChildren().add(newNode);

}

TreeNode treeDataRoot = (TreeNode) tree.getValue();
tree.setValue(treeDataRoot);

}
}

-Original Message-
From: Edwin Mercado [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 22, 2005 1:43 PM
To: MyFaces Discussion
Subject: RE: tree3 component reload


Here's the action listener for the add child node
command link:

 public void createProArgumentationNode(ActionEvent event)
 {
  ArgumentationNode child = createNode();
  ArgumentationNode parent = getCurrentNode();
  addEdge(child, parent, true);

  /* view updated model data */ 
  focusNode(event, child);
  toggleSelectedNode();

 }
loadTreeData() gets called twice by the getTreeData()
BEFORE the addition of the new node and once AFTER.
Apparently, the tree model is updated with the previous (old) data.

Edwin
-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED]
Sent: Friday, July 22, 2005 4:34 PM
To: MyFaces Discussion
Subject: Re: tree3 component reload


Can you post the code for your action listener?  I'm curious 
to see if loadTreeData() is being called after or before you 
updating the tree model.

 Original message 
>Date: Fri, 22 Jul 2005 15:40:22 -0400
>From: Edwin Mercado <[EMAIL PROTECTED]>
>Subject: tree3 component reload  
>To: users@myfaces.apache.org
>
>Hello all,
>I'm still baffled by the JSF phases. I'm using a tree3
component
>that is a tied to a getTreeData() function to retrieve the
current data
>from the model. Everytime I select a node, the getTreeData()
function is
>called 3 times, retrieving the same data every time.
>
>   value="#
{treeBacker.treeData}" var="node"
>varNodeToggler="t"
>   clientSideToggle="true">
>...
>
>
> public TreeNode getTreeData()  {
>  treeData = loadTreeData();
>  return treeData;
> }
>
>
>Now, for each tree3 node that has been selected I display
>a command link to add a child node.
>
>  styleClass="document"
>   action="UpdateViewAction"
>   
>actionListener="#{treeBacker.createProArgumentationNode}">
>   border="0" />
>   
>
>Whenever I click add child node command
>link, the getTreeData() is called 3 times, but with a 
little "twist". This
>is
>how it goes:
>
>1st time:  getTre

Re: Using JSF from code & behind another controller

2005-07-22 Thread Craig McClanahan
On 7/22/05, Duncan Krebs <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> Hi, 
> 
> I'm trying to integrate MyFaces into an in-house web framework and have a
> couple of grey areas that I'm trying to think through. 
> 
>   
>  
> Building JSF pages without JSP and taglibs. 
> 
> Lets say I want to dynamically build a JSF form and the controls that should
> be included in the form are defined at runtime, instead of a typical java
> bean. The idea I have is to dynamically build a JSF form all in code and
> then be able to reuse it throughout the life of the form. The first thing I
> need to figure out is what API would I use to directly instantiate stuff
> like,  etc. directly in code without using the
> associated Taglibs. Is this possible? 

One approach you might consider is to just build up the component tree
in a JSF view programmatically, using the child access APIs that are
built directly into the components.  Something like this snippet:

FacesContext context = ...;
UIViewRoot viewRoot = new UIViewRoot();
viewRoot.setViewId("/foo");
UIForm form = new UIForm();
form.setId("form1");
viewRoot.getChildren().add(form);
UIOutput label1 = new UIOutput();
label1.setValue("Username:");
form.getChildren().add(label1);
UIInput username = new UIInput();
username.setId("username");
username.setValueBinding("value", ...);
form.getChildren().add(username);

If you look at what an IDE for building Swing dialogs does to persist
the choices you make, it will often be generated code that looks a lot
like this.

Another option would be to use something like the Clay plug-in in
Shale, which (among other things) lets you compose the overall view
out of reusable subtrees of components defined in an XML structure (or
with a Tapestry-like separation of component definitions from the raw
HTML markup).

> 
>   
>  
> Using JSF behind another controller. 
> 
> I currently have a controller that is responsible for serving all requests
> and its specific to an existing framework that I still want to use. However
> I also want to use JSF!. The way I see myself wanting to integrate this is
> like this: I have my overall page broken down into 4 sections, for the sake
> of this example lets say each section is its own jsp page. Now lets say that
> I know one of these pages is a JSF page, I would usually get a
> RequestDispatcher off the ServletContext to get the jsp output but in this
> case it has to go through the JSF controller. What could I do? Or more
> generally is it even possible to put the JSF controller behind another
> controller? 

The closest I have come to this is putting JSF's in *front* of the
other controller, instead of behind it.  That's the way that the
Struts-Faces integration library works.  The idea is to let JSF handle
all the events that are typically UI related by itself (open a tree
node and redisplay, for example), and then map application level
events (like a submit button being pressed) to the corresponding
mechanism in the framework behind it.

That being said, any architecture like this with competing front
controllers is going to end up being clumsy, and will always leave you
with decisions about which framework's facilities to use for
overlapping functionality (like navigation or validation, for
example).  This is why I'm currently focused on Shale instead -- it
assumes JSF exists, and uses the extension points built in to JSF's
lifecycle to add any other facilities I want.  You might see if you
can link your existing controller's facilities that way instead.

> 
>   
> 
> Any comments or thoughts would be greatly appreciated as I'm having a tough
> time finding my answers on the web. 
> 

Craig McClanahan


RE: tree3 component reload

2005-07-22 Thread Edwin Mercado
Here's the action listener for the add child node
command link:

 public void createProArgumentationNode(ActionEvent event)
 {
  ArgumentationNode child = createNode();
  ArgumentationNode parent = getCurrentNode();
  addEdge(child, parent, true);

  /* view updated model data */ 
  focusNode(event, child);
  toggleSelectedNode();

 }
loadTreeData() gets called twice by the getTreeData()
BEFORE the addition of the new node and once AFTER.
Apparently, the tree model is updated with the previous (old)
data.

Edwin
-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED]
Sent: Friday, July 22, 2005 4:34 PM
To: MyFaces Discussion
Subject: Re: tree3 component reload


Can you post the code for your action listener?  I'm curious 
to see if loadTreeData() is being called after or before you 
updating the tree model.

 Original message 
>Date: Fri, 22 Jul 2005 15:40:22 -0400
>From: Edwin Mercado <[EMAIL PROTECTED]>  
>Subject: tree3 component reload  
>To: users@myfaces.apache.org
>
>Hello all,
>I'm still baffled by the JSF phases. I'm using a tree3 
component
>that is a tied to a getTreeData() function to retrieve the 
current data
>from the model. Everytime I select a node, the getTreeData() 
function is
>called 3 times, retrieving the same data every time.
>
>   value="#
{treeBacker.treeData}" var="node"
>varNodeToggler="t"
>   clientSideToggle="true">
>...
>
>
> public TreeNode getTreeData()  {
>  treeData = loadTreeData();
>  return treeData;
> }
>
>
>Now, for each tree3 node that has been selected I display
>a command link to add a child node. 
>
>  styleClass="document"
>   action="UpdateViewAction"
>   
>actionListener="#{treeBacker.createProArgumentationNode}">
>   border="0" />
>   
>
>Whenever I click add child node command 
>link, the getTreeData() is called 3 times, but with a 
little "twist". This
>is 
>how it goes:
>
>1st time:  getTreeData() gets called and returns the 
already displayed
>data
>2nd time:  similar steps as in the 1st time.
>> the actionListener for the add child node command link 
gets called.
>   The model is updated with the appropriate value.
>3rd time:  getTreeData() gets called but this time it 
gets the updated
>   model value.
>
>Unfortunately, after the 3rd time that getTreeData() got 
called with the
>updated 
>model value, the tree3 component displays only the previous 
stored value.
>Now, if I selected a node THEN the updated value (the added 
node) gets
>displayed.
>
>My question is how can I make the tree3 component display 
the most recent
>model data?
>
>Thanks
>Edwin
>p.s. I experience the same effect using the tree2 component 
instead of the
>tree3.
>
>
Dennis Byrne


Re: tree3 component reload

2005-07-22 Thread Dennis Byrne
Can you post the code for your action listener?  I'm curious 
to see if loadTreeData() is being called after or before you 
updating the tree model.

 Original message 
>Date: Fri, 22 Jul 2005 15:40:22 -0400
>From: Edwin Mercado <[EMAIL PROTECTED]>  
>Subject: tree3 component reload  
>To: users@myfaces.apache.org
>
>Hello all,
>I'm still baffled by the JSF phases. I'm using a tree3 
component
>that is a tied to a getTreeData() function to retrieve the 
current data
>from the model. Everytime I select a node, the getTreeData() 
function is
>called 3 times, retrieving the same data every time.
>
>   value="#
{treeBacker.treeData}" var="node"
>varNodeToggler="t"
>   clientSideToggle="true">
>...
>
>
> public TreeNode getTreeData()  {
>  treeData = loadTreeData();
>  return treeData;
> }
>
>
>Now, for each tree3 node that has been selected I display
>a command link to add a child node. 
>
>  styleClass="document"
>   action="UpdateViewAction"
>   
>actionListener="#{treeBacker.createProArgumentationNode}">
>   border="0" />
>   
>
>Whenever I click add child node command 
>link, the getTreeData() is called 3 times, but with a 
little "twist". This
>is 
>how it goes:
>
>1st time:  getTreeData() gets called and returns the 
already displayed
>data
>2nd time:  similar steps as in the 1st time.
>> the actionListener for the add child node command link 
gets called.
>   The model is updated with the appropriate value.
>3rd time:  getTreeData() gets called but this time it 
gets the updated
>   model value.
>
>Unfortunately, after the 3rd time that getTreeData() got 
called with the
>updated 
>model value, the tree3 component displays only the previous 
stored value.
>Now, if I selected a node THEN the updated value (the added 
node) gets
>displayed.
>
>My question is how can I make the tree3 component display 
the most recent
>model data?
>
>Thanks
>Edwin
>p.s. I experience the same effect using the tree2 component 
instead of the
>tree3.
>
>
Dennis Byrne


RE: Using JSF from code & behind another controller

2005-07-22 Thread balaji.saranathan







Hi,
I'm new to all of this and
learning on the way.
 
But I'm doing something similar to the
first point below.
I'm building a component that can build me
a form from XML based configuration file.  In that case you would directly
use the HtmlForm and HtmlInputText. The component I'm designing builds the form
page with the regular _expression_ validator thrown into it. It also takes in a
Bean to fill in the values in case of a Edit mode.
 
I would also appreciate if I get any
feedback on designing such dynamically created forms. Is it worth the effort to
do it?
 
 


From: Duncan Krebs
[mailto:[EMAIL PROTECTED]Sent: Sat 7/23/05 1:43 AMTo:
users@myfaces.apache.orgSubject: Using JSF from code & behind
another controller


Hi, 
I’m trying to integrate MyFaces into
an in-house web framework and have a couple of grey areas that I’m trying to
think through. 
 

  Building JSF pages without JSP and
  taglibs. 
Lets say I want to dynamically build
a JSF form and the controls that should be included in the form are defined at
runtime, instead of a typical java bean. The idea I have is to dynamically build
a JSF form all in code and then be able to reuse it throughout the life of the
form. The first thing I need to figure out is what API would I use to directly
instantiate stuff like,  etc. directly in code
without using the associated Taglibs. Is this possible? 
 

  Using JSF behind another
  controller. 
I currently have a controller that
is responsible for serving all requests and its specific to an existing
framework that I still want to use. However I also want to use JSF!. The way I
see myself wanting to integrate this is like this: I have my overall page broken
down into 4 sections, for the sake of this example lets say each section is its
own jsp page. Now lets say that I know one of these pages is a JSF page, I would
usually get a RequestDispatcher off the ServletContext to get the jsp output but
in this case it has to go through the JSF controller. What could I do? Or more
generally is it even possible to put the JSF controller behind another
controller? 
 
Any comments or thoughts would be
greatly appreciated as I’m having a tough time finding my answers on the web.

 
 
 
 
 
 







Confidentiality Notice 

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.


Using JSF from code & behind another controller

2005-07-22 Thread Duncan Krebs








Hi, 

I’m trying to integrate MyFaces
into an in-house web framework and have a couple of grey areas that I’m
trying to think through. 

 


 Building JSF pages without JSP and taglibs. 


Lets say I want to dynamically build
a JSF form and the controls that should be included in the form are defined at
runtime, instead of a typical java bean. The idea I have is to dynamically
build a JSF form all in code and then be able to reuse it throughout the life
of the form. The first thing I need to figure out is what API would I use to
directly instantiate stuff like,  etc.
directly in code without using the associated Taglibs. Is this possible? 

 


 Using JSF behind another controller. 


I currently have a controller that
is responsible for serving all requests and its specific to an existing
framework that I still want to use. However I also want to use JSF!. The way I
see myself wanting to integrate this is like this: I have my overall page broken
down into 4 sections, for the sake of this example lets say each section is its
own jsp page. Now lets say that I know one of these pages is a JSF page, I
would usually get a RequestDispatcher off the ServletContext to get the jsp output
but in this case it has to go through the JSF controller. What could I do? Or
more generally is it even possible to put the JSF controller behind another
controller? 

 

Any comments or thoughts would be greatly
appreciated as I’m having a tough time finding my answers on the web. 

 

 

 

 

 

 








Re: I cannot load tags of myfaces 1.0.9 (20050711) in Eclipse 3.1 final and JBossIDE-1.5M2-ALL ...

2005-07-22 Thread fabio quimbay
Thanks Bruno, ..

But semicolns (;) was a write error at the time of writing the mail;
in my project I have the lines well, but it follows without working
correctly. Somebody works with Eclipse and myFaces and him to
presented/displayed this problem? Somebody has been able to solve it?.

The truth is enough the lost time when trying to know that attributes
have a . A long time ago with an old version of eclipse 3.0.x and
myfaces 1.0.7 worked correctly, but now it does not work.

Again, thanks for your help

2005/7/22, Bruno Aranda <[EMAIL PROTECTED]>:
> Fabio, remove the semicolons (;) after the uri from the taglib declarations...
> 
>  <%@ taglib uri="http://java.sun.com/jsf/html";; prefix="h"%>
>  <%@ taglib uri="http://java.sun.com/jsf/core";; prefix="f"%>
>  <%@ taglib uri="http://myfaces.apache.org/extensions";; prefix="x"%>
> 
> should be:
> 
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
> <%@ taglib uri="http://myfaces.apache.org/extensions"; prefix="x"%>
> 
> Regards,
> 
> Bruno
> 
> 2005/7/21, fabio quimbay <[EMAIL PROTECTED]>:
> > Greettings, Dennis ...
> >
> > It will leave jars in WEB-INF/lib according to as it describes the
> > especficación to it, the truth didn't know it; although I continue
> > with the problem of not being able to load tags from a page JSP in
> > eclipse 3.1. I have been enough time with this restlessness and not
> > yet I have managed to find a solution. Thanks.
> >
> > 2005/7/21, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> > >
> > > Are the jar files from the standard release?
> > >
> > > If so, remove the myfaces tld files and the taglib elements from the DD.  
> > > We
> > > don't have to declare TLs anymore.  The new spec mandates that the 
> > > container
> > > to automatically make TLs available ... if they are located in certain
> > > places.  Those certain places include inside the manifest of a jar that is
> > > inside /WEB-INF/lib , which you have done already by placing the myfaces
> > > jars under lib.  I don't think this will help you with eclipse, but it 
> > > will
> > > save you a second post to the list.
> > >
> > > Dennis Byrne
> > >
> >
> >
> > --
> > fabio quimbay
> >
> 


-- 
fabio quimbay


tree3 component reload

2005-07-22 Thread Edwin Mercado
Hello all,
I'm still baffled by the JSF phases. I'm using a tree3 component
that is a tied to a getTreeData() function to retrieve the current data
from the model. Everytime I select a node, the getTreeData() function is
called 3 times, retrieving the same data every time.


...


 public TreeNode getTreeData()  {
  treeData = loadTreeData();
  return treeData;
 }


Now, for each tree3 node that has been selected I display
a command link to add a child node. 





Whenever I click add child node command 
link, the getTreeData() is called 3 times, but with a little "twist". This
is 
how it goes:

1st time:   getTreeData() gets called and returns the already displayed
data
2nd time:   similar steps as in the 1st time.
> the actionListener for the add child node command link gets called.
The model is updated with the appropriate value.
3rd time:   getTreeData() gets called but this time it gets the updated
model value.

Unfortunately, after the 3rd time that getTreeData() got called with the
updated 
model value, the tree3 component displays only the previous stored value.
Now, if I selected a node THEN the updated value (the added node) gets
displayed.

My question is how can I make the tree3 component display the most recent
model data?

Thanks
Edwin
p.s. I experience the same effect using the tree2 component instead of the
tree3.




Basic/standard - choose component set?

2005-07-22 Thread Darren Hartford
Hello all,
I'm not sure if this is possible, but I think if anyone would know it
would be this crew -

Given the opportunity to build an application using the basic/standard
component types, is there a way to set it up to swap out the different
origins?

i.e. 
'petstore/adventurebuilder' running with Sun RI JSF basic/standard
components.
'petstore/adventurebuilder' running with MyFaces standard components.
'petstore/adventurebuilder' running with Oracle ADF standard components.

So a 'client' can see the difference between the default
buttons/textboxes/calendar-datepicker/etc without re-writing the
application every time?

Thanks,
-D


tree2 component reload

2005-07-22 Thread Edwin Mercado
Hello all,
I'm still baffled by the JSF phases. I'm using a tree2 component
that is a tied to a getTreeData() function to retrieve the current data
from the model. Everytime I select a node, the getTreeData() function is
called 3 times. 

Now, for each tree2 node that has been selected I display
a command link to add a child node. Whenever I click add child node command 
link, the getTreeData() is called 3 times, but with a little "twist". This
is 
how it goes:

1st time:   getTreeData() gets called and return already displayed data
2nd time:   similar steps as in the 1st time.
> the actionListener for the add child node command link gets called.
The model is updated with the appropriate value.
3rd time:   getTreeData() get called but this time it gets the updated
model value.

Unfortunately, after the 3rd time that getTreeData() got called with the
updated 
model value, the tree2 component displays only the previous stored value.
Now, if I selected a node THEN the updated value (the added node) gets
displayed.



Re: TabbedPane + Tiles

2005-07-22 Thread Curtney Jacobs
Any suggestions?

On Thu, 2005-07-21 at 21:11 -0700, Curtney Jacobs wrote:
> Greetings!
> 
> I have successfully manage to get my tile to display within my tabs,
> however, the same tile definition is displayed in each tab. I would like
> each tab to display its' corresponding tile. I don't know how to specify
> the correct url so that the correct tile definition is inserted. The
> following is what my tile definitions  and jsp looks like:
> 
> 
>   
>  path="/workspace/template/workspace-template.jsp">
>   
> 
> 
> 
>   
>   
>   
> 
> 
> 
>   
>   
>   
> 
> 
> 
>   
> 
> 
> 
>   
> 
> 
>
> 
> 
> 
> 
>   
>   
>columns="1" border="0"
> cellpadding="0" cellspacing="0" >
> 
> activeTabStyleClass="active"
>  inactiveTabStyleClass="inactive"
>  activeSubStyleClass="activeSub"
>  inactiveSubStyleClass="inactiveSub"
>  tabContentStyleClass="tabContent">
> 
>   
> 
>   
>attribute="wks-desktop" flush="false"/>
>   
> 
>   
> 
>   
>attribute="wks-desktop" flush="false"/>
>   
> 
> 
>   
>   
> 
> 
>
>
>   
> 
> 
>   
>   
>   
>   
> 
> 



RE: WML in MyFaces

2005-07-22 Thread albartell



Cool, got that working with a static servlet wml 
page.
 
Now I am looking to implement the  tags 
that MyFaces offers.  It is looking like I would have to download the code 
from SVN, compile and Jar it to get going with WML. I didn't see the WAP tld's 
in the latest downloads at http://cvs.apache.org/builds/myfaces/nightly/. 
Is http://svn.apache.org/repos/asf/myfaces/ 
currently the only way to get going with MyFaces WML implementation - compile it 
by hand?
 
I haven't compiled MyFaces by hand before, though I have 
started reading the instructions on the site so we will see how far I get 
:-)
 
Thanks,
Aaron Bartell


From: Martin Marinschek 
[mailto:[EMAIL PROTECTED] Sent: Friday, July 22, 2005 9:11 
AMTo: MyFaces DiscussionSubject: Re: WML in 
MyFaces
there is a plugin for the firefoxit's called WML browser 
extension or so...google for it, and you'll find 
it.regards,Martin
On 7/22/05, albartell 
<[EMAIL PROTECTED]> 
wrote:

  I found it 
  in SVN, thanks for the redirect. :-)
   
  On another 
  note I am wondering what people use to test their WML applications. I 
  obviously don't want to have to publish it out to a web server on the internet 
  just so I can test it with my Blackberry.  Does anyone know of a WML 
  device simulator that can run on my local PC and allow me to hit localhost on 
  my PC also?
   
  Thanks,
  Aaron 
  Bartell
   
  
  
  From: Martin Marinschek [mailto:[EMAIL PROTECTED]] Sent: Friday, July 
  22, 2005 2:24 AMTo: MyFaces DiscussionSubject: Re: WML 
  in MyFaces
  
  Well, after our current SVN reorg the WML tag library kind of got 
  lost ;)it should already be back in the nightly builds, 
  though...regards,Martin
  On 7/21/05, aaronbartell <[EMAIL PROTECTED] 
  > wrote: 
  
I am going to be writing a WML 
application and was excited to dig in with MyFaces because I have seen (or 
thought I saw) the tags for MyFaces WML implementation in the past.  
Now I am having trouble finding the WML tag library in any of the downloads 
or even mentioned on the MyFaces.apache.org 
website.  I have found a few threads in the forum archive, but nothing 
that points me in any direction.
 
Could somebody tell me where to start 
looking? 
 
Aaron 
Bartell


RE: RE : commandLink and onClick javascript popup window problem

2005-07-22 Thread CONNER, BRENDAN \(SBCSI\)
Yes, that works well.  That method is similar to index.jsp and popup.jsp in 
Chapter 12 of "Core JavaServer Faces" in that the parameters are passed as 
request parameters in the URL.  The popup JSP can then access the values using 
param.xxx and param.yyy.

Another method outlined in that chapter is supposed to use JSF to pass the 
parameters to the popup window via the normal managed bean method, so the popup 
window just references the managed bean and not explicit request parameter 
values.  That seems like a more JSF-oriented approach.  Unfortunately, it 
doesn't work as written, and I'm curious whether anyone has gotten it to work.  
(This example is given in index2.jsp and popup2.jsp in Chapter 12 of the book.)

- Brendan

-Original Message-
From: Slawek [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 22, 2005 4:33 AM
To: MyFaces Discussion
Subject: Re: RE : commandLink and onClick javascript popup window problem


i have made it in #2 way - that was described in my last post
it works great (and opens in browser window:P )

Sławek Sobótka

> Someone has made it (the onclick popup) ! You can find it there : 
> http://www.jenia.org
> Or view a demo here : http://www.jenia.org/TestPopup/jsp/index.jsp
> That don't solve my problem entirely, because I want my page to be 
> opened in a browser window, but I think I gone use it somewhere else in 
> my application.
> Thanks for the contribution ;)
>
> Clément
>
> -Message d'origine-
> De : Sean Schofield [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 21 juillet 2005 16:12
> À : MyFaces Discussion
> Objet : Re: commandLink and onClick javascript popup window problem
>
> I think your problem is that you are opening the window with an
> *onclick* javascript even.  This has nothing to do with the JSF
> lifecycle.  The regular commandLink approach (without using onclick)
> works because you post back (via a form) to the same page.  In your
> case you are just opening the page in a new window.  How would JSF
> know the new values from that?
>
> sean
>
> On 7/21/05, Clément Maignien <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> Here is the situation :
>>
>> I have a JSF page (result.jsp) with dataTable component with a 
>> commandLink
>> in one of his columns.
>>
>> When clicking on this commandLink, I would like to open a popup window
>> (detailStockInv.jsp) to display detail informations about the line that 
>> has
>> been clicked.
>>
>> Here is the code I wrote :
>>
>> >
>> ...
>>
>> ... 
>>
>>...
>>
>>
>>
>> 
>>
>> 
>>
>> 
>>
>> > actionListener="#{stockBean.updateDetailStock}
>>
>>
>> onclick="window.open('detailStockInv.jsp','','width=700,height=400,top=100,left=100')">
>>
>>
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> ...
>>
>> 
>>
>>
>>
>> I've put an actionListener to update datas (a bean property) that are
>> displayed in the popup page (detailStockInv.jsp) in a dataTable 
>> component.
>>
>>
>>
>> My popup is opened and displayed when I click one of the commandLink of 
>> my
>> results dataTable, but the problem is that the bean values that are 
>> read by
>> my popup page are the previous ones : the first time I click a 
>> commandLink,
>> the values displayed by the popup are not the ones updated by my
>> actionListener but the initial ones (inited in the bean constructor). 
>> The
>> second time I click a commandLink, the values of the line I cliked 
>> before
>> are displayed.
>>
>>
>>
>> In my opinion, the popup is displayed before the update model value 
>> phase of
>> the JSF life cycle occurs. As a consequence, the previous bean values 
>> are
>> displayed in my popup page.
>>
>> To confirm that, I tried not to display this page in a popup, but in the
>> same window (normal flow) with the action property of the commandLink :
>>
>> > action="#{stockBean.showDetailAction}"
>>
>> 
>>
>>
>>
>> 
>>
>>
>>
>> The showDetailAction action and the updateDetailStock actionListener are
>> doing exactly the same work (updating the detail values of my bean), 
>> except
>> that it return a navigation result to display the detailStockInv.jsp 
>> page
>>
>> In this way, the values that are displayed in the detailStockInv.jsp 
>> are the
>> good ones (the bean's ones).
>>
>>
>>
>> Is there a way to force the update value phase before the popup is 
>> displayed
>> ? Maybe the way I call the popup isn't the right one ... don't know.
>>
>>
>>
>> Please help, thanks :D
>>
>>
>>
>> Clément Maignien.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>




Re: StateHolder Question

2005-07-22 Thread Galen Dunkleberger
Ok so if i store the selectedItemId field of my component in state via
it's saveState method I would think that acrossed requests to
different views it would restore it's value right?  What my concern is
is that I've missed some important method i need to implement in order
to create this custom component. The reason is this...if i run a page
with my component and click one of the navigatorItems the decode
method in my component's renderer is run and the selectedItemId field
in my component is set. If I look at the address of my component
object while debugging through the setter methods for the
selectedItemId field it will be something like (just making up an
address for example) [EMAIL PROTECTED] but when it hits the
saveState method there is a new object address or in other words a new
HtmlNavigatorPanel was created and so my selectedItemId value doesn't
get saved because it's null in the new object. I am sure the
isTransient method is returning false for the component.

Part of me thinks this behavior is correct because of the nature of my
component. Say I have two jsps

A.jsp

 







and then 

B.jsp also has the my:navigatorPanel component included in it...in
real life I am using jsp:includes to a subview page that has the
my:navigatorPanel component


 







So when I click the B navigator item from A.jsp  I'm going to a whole
different view and so a new view root would be created which would
explain why I'm seeing a new NavigatorPanel object being created with
an empty state. Now in this example I have the value of the
selectedItemId bound to an attribute in a session scoped managed bean
called navigatorBean and so my component works fine. But what I
initially thought i could do was just store the value of
selectedItemId in the state of the component and not have to bind it
to a managed bean. If i take away that value binding the
selectedItemId isn't saved from one view to the next.

 Any thoughts?
  Galen




On 7/22/05, Enrique Medina <[EMAIL PROTECTED]> wrote:
> Hi,
>  
>  I think you should differentiate between the state of the component and the
> value binded to the component. The state is stored in session (if server)
> and as hidden fields (in client), so I don't think you will face problems
> with that.
>  
>  Maybe your question is more about the value of the components, which is
> usually binded to a backing bean that, if request scoped, is recreated in
> each new request (so the value is lost from request to request). If you need
> to preserve the value from request to request then you should bind your
> value to the session or have a look at the Dialogs from Shale (there has
> been a lot of discussion about the scope in this forum).
>  
>  Hope it helps,
>  Enrique Medina.
> 
> 2005/7/21, Galen Dunkleberger <[EMAIL PROTECTED]>:
> > Am I correct in believing a component only holds its state for the
> > life of a single view. So that if the "same" component is in two
> > differenet views and I navigate from one view to other the component
> > will not retain it's state from the previouse view without it's values 
> > or itself being bound to a session scoped managed-bean? Or is it
> > possible for a component to save it's own state acrossed multiple
> > views?
> >Thanks,
> >Galen
> > 
> 
>


[INFO] Respecting the Java Community

2005-07-22 Thread Jonas Jacobi

An article worth the five minutes it take to read

http://java.sys-con.com/read/108471.htm

- Jonas


Re: Two question regarding forms

2005-07-22 Thread Bruno Aranda
I meant -> immediate="true" :-)

Bruno 

2005/7/22, Bruno Aranda <[EMAIL PROTECTED]>:
> Hi Boris,
> 
> 1) Use the attribute mmediate="true" in your cancel button to bypass
> the validation.
> 2) Only the first child component of a facet is renderer. I recommend
> you to put your buttons inside a panelGroup component, so the
> panelGroup will be the only child,
> 
> Regards,
> 
> Bruno
> 
> 2005/7/22, Klug, Boris <[EMAIL PROTECTED]>:
> > Hi!
> >
> > I have two questions regarding forms. I think they are quite simply - for 
> > you,
> > not for me ;-)
> >
> > 1) Leaving a page without validation.
> > I have a form (see 2) with input field that are validates, e.g. a
> > required="true". The validation should be checked if the OK submit button is
> > hit. This works fine. But when the Cancel button is hit, the validation 
> > should
> > not be checked.
> > So how can I enable/disable the validation depending on the button clicked?
> >
> > 2) One button missing in the rendered page.
> > See the jsp page snippet below (*1). The button "Cancel" is not rendered in 
> > the
> > resulting html page. When I put the form tag around the two buttons in the
> > footer facet (see *2) , both buttons are rended. Why?
> >
> > Thank you for your help in advance
> >
> >
> > == (*1) Button missing  ===
> > 
> >  >  
> > headerClass="standardDialogHeader"
> >  
> > footerClass="standardDialogFooter">
> > 
> > 
> > 
> >
> >  > />
> >  > maxlength="5"
> > size="10" required="true" />
> > 
> >
> > 
> >  > value="#{prefs.showObjectsInSubset}" />
> > 
> >
> > 
> >  > action="#{prefs.outOk}" />
> >  > action="#{prefs.outCancel}" />
> > 
> > 
> >
> > 
> >
> > == (*2) Both buttons are rendered ===
> >  >  
> > headerClass="standardDialogHeader"
> >  
> > footerClass="standardDialogFooter">
> > 
> > 
> > 
> >
> > 
> >  > />
> >  > maxlength="5"
> > size="10" required="true" />
> > 
> >
> > 
> >  > value="#{prefs.showObjectsInSubset}" />
> > 
> > 
> >
> > 
> > 
> >  > action="#{prefs.outOk}" />
> >  > action="#{prefs.outCancel}" />
> > 
> > 
> > 
> >
> >
> >
> >
> > --
> > Boris Klug
> >
>


Re: Two question regarding forms

2005-07-22 Thread Bruno Aranda
Hi Boris,

1) Use the attribute mmediate="true" in your cancel button to bypass
the validation.
2) Only the first child component of a facet is renderer. I recommend
you to put your buttons inside a panelGroup component, so the
panelGroup will be the only child,

Regards,

Bruno

2005/7/22, Klug, Boris <[EMAIL PROTECTED]>:
> Hi!
> 
> I have two questions regarding forms. I think they are quite simply - for you,
> not for me ;-)
> 
> 1) Leaving a page without validation.
> I have a form (see 2) with input field that are validates, e.g. a
> required="true". The validation should be checked if the OK submit button is
> hit. This works fine. But when the Cancel button is hit, the validation should
> not be checked.
> So how can I enable/disable the validation depending on the button clicked?
> 
> 2) One button missing in the rendered page.
> See the jsp page snippet below (*1). The button "Cancel" is not rendered in 
> the
> resulting html page. When I put the form tag around the two buttons in the
> footer facet (see *2) , both buttons are rended. Why?
> 
> Thank you for your help in advance
> 
> 
> == (*1) Button missing  ===
> 
>   
> headerClass="standardDialogHeader"
>  
> footerClass="standardDialogFooter">
> 
> 
> 
> 
> 
>  maxlength="5"
> size="10" required="true" />
> 
> 
> 
>  value="#{prefs.showObjectsInSubset}" />
> 
> 
> 
>  action="#{prefs.outOk}" />
>  action="#{prefs.outCancel}" />
> 
> 
> 
> 
> 
> == (*2) Both buttons are rendered ===
>   
> headerClass="standardDialogHeader"
>  
> footerClass="standardDialogFooter">
> 
> 
> 
> 
> 
> 
>  maxlength="5"
> size="10" required="true" />
> 
> 
> 
>  value="#{prefs.showObjectsInSubset}" />
> 
> 
> 
> 
> 
>  action="#{prefs.outOk}" />
>  action="#{prefs.outCancel}" />
> 
> 
> 
> 
> 
> 
> 
> --
> Boris Klug
>


Re: WML in MyFaces

2005-07-22 Thread Gérard COLLIN
 Opera browser has native support for WML.

 Gérard


On Friday 22 July 2005 15:57, albartell wrote:
> I found it in SVN, thanks for the redirect. :-)
>
> On another note I am wondering what people use to test their WML
> applications. I obviously don't want to have to publish it out to a web
> server on the internet just so I can test it with my Blackberry.  Does
> anyone know of a WML device simulator that can run on my local PC and allow
> me to hit localhost on my PC also?
>
> Thanks,
> Aaron Bartell
>
>
>   _
>
> From: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 22, 2005 2:24 AM
> To: MyFaces Discussion
> Subject: Re: WML in MyFaces
>
>
> Well, after our current SVN reorg the WML tag library kind of got lost ;)
>
> it should already be back in the nightly builds, though...
>
> regards,
>
> Martin
>
>
> On 7/21/05, aaronbartell <[EMAIL PROTECTED]> wrote:
>
> I am going to be writing a WML application and was excited to dig in with
> MyFaces because I have seen (or thought I saw) the tags for MyFaces WML
> implementation in the past.  Now I am having trouble finding the WML tag
> library in any of the downloads or even mentioned on the MyFaces.apache.org
> website.  I have found a few threads in the forum archive, but nothing that
> points me in any direction.
>
> Could somebody tell me where to start looking?
>
> Aaron Bartell


Two question regarding forms

2005-07-22 Thread Klug, Boris
Hi!

I have two questions regarding forms. I think they are quite simply - for you,
not for me ;-)

1) Leaving a page without validation.
I have a form (see 2) with input field that are validates, e.g. a
required="true". The validation should be checked if the OK submit button is
hit. This works fine. But when the Cancel button is hit, the validation should
not be checked.
So how can I enable/disable the validation depending on the button clicked?

2) One button missing in the rendered page.
See the jsp page snippet below (*1). The button "Cancel" is not rendered in the
resulting html page. When I put the form tag around the two buttons in the
footer facet (see *2) , both buttons are rended. Why?

Thank you for your help in advance


== (*1) Button missing  ===






















== (*2) Both buttons are rendered ===


























--
Boris Klug


Re: WML in MyFaces

2005-07-22 Thread Martin Marinschek
there is a plugin for the firefox

it's called WML browser extension or so...

google for it, and you'll find it.

regards,

MartinOn 7/22/05, albartell <[EMAIL PROTECTED]> wrote:





I found it in SVN, thanks for the redirect. 
:-)
 
On another note I am wondering what people use to test 
their WML applications. I obviously don't want to have to publish it out to a 
web server on the internet just so I can test it with my Blackberry.  Does 
anyone know of a WML device simulator that can run on my local PC and allow me 
to hit localhost on my PC also?
 
Thanks,
Aaron Bartell
 


From: Martin Marinschek 
[mailto:[EMAIL PROTECTED]] Sent: Friday, July 22, 2005 2:24 
AMTo: MyFaces DiscussionSubject: Re: WML in 
MyFaces
Well, after our current SVN reorg the WML tag library kind of got 
lost ;)it should already be back in the nightly builds, 
though...regards,Martin
On 7/21/05, aaronbartell <[EMAIL PROTECTED]
> 
wrote: 

  I am going to be writing a WML application 
  and was excited to dig in with MyFaces because I have seen (or thought I saw) 
  the tags for MyFaces WML implementation in the past.  Now I am having 
  trouble finding the WML tag library in any of the downloads or even mentioned 
  on the MyFaces.apache.org 
  website.  I have found a few threads in the forum archive, but nothing 
  that points me in any direction.
   
  Could somebody tell me where to start 
  looking? 
   
  Aaron 
  Bartell




RE: WML in MyFaces

2005-07-22 Thread albartell



I found it in SVN, thanks for the redirect. 
:-)
 
On another note I am wondering what people use to test 
their WML applications. I obviously don't want to have to publish it out to a 
web server on the internet just so I can test it with my Blackberry.  Does 
anyone know of a WML device simulator that can run on my local PC and allow me 
to hit localhost on my PC also?
 
Thanks,
Aaron Bartell
 


From: Martin Marinschek 
[mailto:[EMAIL PROTECTED] Sent: Friday, July 22, 2005 2:24 
AMTo: MyFaces DiscussionSubject: Re: WML in 
MyFaces
Well, after our current SVN reorg the WML tag library kind of got 
lost ;)it should already be back in the nightly builds, 
though...regards,Martin
On 7/21/05, aaronbartell <[EMAIL PROTECTED]> 
wrote: 

  I am going to be writing a WML application 
  and was excited to dig in with MyFaces because I have seen (or thought I saw) 
  the tags for MyFaces WML implementation in the past.  Now I am having 
  trouble finding the WML tag library in any of the downloads or even mentioned 
  on the MyFaces.apache.org 
  website.  I have found a few threads in the forum archive, but nothing 
  that points me in any direction.
   
  Could somebody tell me where to start 
  looking? 
   
  Aaron 
  Bartell


Re: Dynamic Converter

2005-07-22 Thread Enrique Medina
Hi,

I implemented a generic object converter for Hibernate using a dummy
dao that only needs the ID for the object (in terms of Hibernate) and
its class.

So when the object has to be converted to a String, I simply generate a
string with the class name and the ID of the object. And when a string
needs to be converted to an object, I simply ask Hibernate to load the
object whose class and ID is obtained from the previously created
string.

I can do this generic thing due to the fact that I'm working with
Hibernate, but I think it can be easily extended to whatever scope you
need.

Hope it helps ;-)2005/7/21, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:

There are 29 lookup tables in my db.
The selectOneMenu tags of the site are populated via objects that have
been mapped to each table using Hibernate.  I want "one converter
to rule them all".

getAsString() is done (determine the
identifier/pk property of the bean at runtime by querying the OR meta data,
call it w/ reflection, return the value as a string).  getAsObject()
however is difficult - it needs some way to know which class it must create.

Is there a way to determine this by
walking the UIcomponent passed to getAsObject() ?  I can cast it to
a HtmlSelectOneMenu but that's as far as I get.

One idea was to extend the tag handler,
add a className attribute and pass the value of this attribute to the dynamic
converter in an over ridden createConverter().  Despite the fact that
this means the class's full java name appears directly in the JSP, I still
did this only to find that it only works for the first conversion.  The
dynamic converter is recreated for each request, and the createConverter()
of the tag class only fires for the first request.

I'm open to the possibility this smart
converter is not a smart idea.  Someone throw me a bright idea before
I go with the following:

Write 29 classes, each implements getAsObject()
- each class inherits getAsString() from 30th class.

Dennis Byrne




Re: StateHolder Question

2005-07-22 Thread Enrique Medina
Hi,

I think you should differentiate between the state of the component and
the value binded to the component. The state is stored in session (if
server) and as hidden fields (in client), so I don't think you will
face problems with that.

Maybe your question is more about the value of the components, which is
usually binded to a backing bean that, if request scoped, is recreated
in each new request (so the value is lost from request to request). If
you need to preserve the value from request to request then you should
bind your value to the session or have a look at the Dialogs from Shale
(there has been a lot of discussion about the scope in this forum).

Hope it helps,
Enrique Medina.2005/7/21, Galen Dunkleberger <[EMAIL PROTECTED]>:
Am I correct in believing a component only holds its state for thelife of a single view. So that if the "same" component is in twodifferenet views and I navigate from one view to other the componentwill not retain it's state from the previouse view without it's values
or itself being bound to a session scoped managed-bean? Or is itpossible for a component to save it's own state acrossed multipleviews?  
Thanks,  
Galen


RE: Contribution of component library planned, live demo availabl e

2005-07-22 Thread Jesse Alexander (KBSA 21)
-Original Message-
At the moment the themes/controls are working only with javascript,
however it is possible to write a script-free theme. Of course in  
that case you will not have the full functionalltiy of the components  
(e.g. columnresizing in the sheet).

The advantage is, that you can run the application in both versions  
(themes) without changing your application code. Even a user  
dependend selection of the suitable theme is possible.
-/Original Message-

That's REALLY good news. What is your timeframe for the opening 
of the source? The tabbing component might save me quite some 
development time...

regards
Alexander


Re: Contribution of component library planned, live demo availabl e

2005-07-22 Thread Udo Schnurpfeil

Hi,

thanks for your feedback.

At the moment the themes/controls are working only with javascript,
however it is possible to write a script-free theme. Of course in  
that case you will not have the full functionalltiy of the components  
(e.g. columnresizing in the sheet).


The advantage is, that you can run the application in both versions  
(themes) without changing your application code. Even a user  
dependend selection of the suitable theme is possible.


Regards

Udo

Am 21.07.2005 um 23:24 schrieb Jesse Alexander (KBSA 21):


Hi

Is there a Javascript free version of the components?

regards
Alexander


-Original Message-
From: Udo Schnurpfeil [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 21, 2005 11:13 PM
To: dev@myfaces.apache.org; users@myfaces.apache.org
Subject: Contribution of component library planned, live demo  
available


Dear MyFaces-Team,

after the MyFaces BOF on the ApacheCON 2005 we have talked to Martin
and Matthias about our extensional faces-based component library  
Tobago.


We showed them some of our online examples visible at

 http://tobago.atanion.net

and we all agreed, that it is important to build up an open-source-
based community around this stuff.

We learned how such a contribution in the ASF world works. So we are
willing to add our component library into the incubator project to
build such a communitiy.

We are really interessted in your feedback regarding our examples.
Unfortunatelly the descriptive text in the demo is not available in
English yet.

Hoping to hear from you

Udo Schnurpfeil






Re: Contribution of component library planned, live demo available

2005-07-22 Thread Udo Schnurpfeil

Hi,

in the moment the focus is on mozilla/firefox and ie.
Better Safari and Opera support is on the tasklist.
Currently I've bought a Mac, so I'm interested myself ;-)

regards

Udo

Am 22.07.2005 um 08:39 schrieb Klug, Boris:


Hi!

great components! What I like is the menu component with the  
feature to disable
menu items and the abillity to select a menu item by using keyboard  
shortcuts.

Also the table component is really impressive.

The use of JavaScript for me is not a problem - as long as there  
are no
conflicts with browsers. Beside Internet Explorer and Netscape/ 
Mozilla/Firefox

you should also test your components with Apple Safari and Opera.

--
Boris Klug







Re: Contribution of component library planned, live demo availabl e

2005-07-22 Thread Udo Schnurpfeil

Hi!


What I like less: JavaScript usage


I don't like JavaScript too. But the focus of the current themes in  
Tobago is to write web applications with a look and feel like a  
desktop application. We want to provide as much confort for the user  
as possible. So we can't drop that stuff.


(But like I said before, there are JavaScript-free themes possible.)


Sheet-Component: After quite a bit of talks with endusers, I consider
it important that the sheet will be set to the first page, after
sorting.


Thats right. We will change that.

regards

Udo




Re: Contribution of component library planned, live demo availabl e

2005-07-22 Thread Werner Punz

There are sometimes situations when such a switch is not possible,
all you can do is to program the component non intrusive so that
it basically does not do anything if such a switch is triggered.



Jesse Alexander (KBSA 21) wrote:

-Original Message-
So neither way is optimal.
-/Original Message-

That's why there should be a configuration switch to allow or not
the use of javascript in a component.

And whether the JS-enabled features should be called advanced? 
I have my own way of thinking about that. But I am known
in my office as the dinosaur that considers 3270 as the 
best user-interface ever designed ;-)


regards
Alexander





RE: Contribution of component library planned, live demo availabl e

2005-07-22 Thread Jesse Alexander (KBSA 21)
-Original Message-
So neither way is optimal.
-/Original Message-

That's why there should be a configuration switch to allow or not
the use of javascript in a component.

And whether the JS-enabled features should be called advanced? 
I have my own way of thinking about that. But I am known
in my office as the dinosaur that considers 3270 as the 
best user-interface ever designed ;-)

regards
Alexander


Re: Contribution of component library planned, live demo availabl e

2005-07-22 Thread Werner Punz

The problem I see with no javascript is, that you simply cannot
get some of the advanced stuff many projects simply want without it.
The other problem with the usage of javascript is, that you run into
legal issues in some project (browser issues are less a problem if
you can rely on having properly tested components)

So neither way is optimal.

Werner


Jesse Alexander (KBSA 21) wrote:

-Original Message-
We are really interessted in your feedback regarding our examples.  
Unfortunatelly the descriptive text in the demo is not available in  
English yet.

-/Original Message-

Advantage of being swiss... no problem with the descriptions ;-)

What I like is the clean design. 
The component offer needed funtionality but some overlap with already 
existing MyFaces component exists.


What I like less: JavaScript usage

Sheet-Component: After quite a bit of talks with endusers, I consider 
it important that the sheet will be set to the first page, after 
sorting.


regards
Alexander





Re: Why does the styleClass attribute not work?

2005-07-22 Thread Randahl Fink Isaksen




Certainly Bruno!

- I have now filed issue 354
http://issues.apache.org/jira/browse/MYFACES-354

It would really save me some work, if you could fix this bug - working
arround this problem is not that easy, and the consequence of the bug
is that you cannot use styled lists on the page at all.

Thanks for getting back to me.

Randahl




Bruno Aranda wrote:

  Hi Randahl, coult you fill a JIRA issue so we don't forget this? We
will try to look at this as soon as possible...

Regards,

Bruno

P.S. and patches are always welcome ;-)

2005/7/22, Randahl Fink Isaksen <[EMAIL PROTECTED]>:
  
  
Has anyone seen the x:dataList attbribute styleClass working? Setting it
has no effect in my configuration - and I am using the latest MyFaces
jars (see my example below).

Randahl



Randahl Fink Isaksen wrote:



  The documentation for the x:dataList says you can add a css style
class to it, but I am unable to make that work. This is what I have:

   

I was expecting to see UL and LI elements with a style class attribute
containing the value "test", but instead I get raw unstyled UL and LI
tags like this:


Velkommen
Farvel


Had anyone had a similar problem?

Thanks

R.



  



  
  

  






RE : RE : commandLink and onClick javascript popup window problem

2005-07-22 Thread Clément Maignien
Thanks Sławek, I'll try it as soon as I can.
Thanks again for your help ;)
Clément

-Message d'origine-
De : Slawek [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 22 juillet 2005 11:33
À : MyFaces Discussion
Objet : Re: RE : commandLink and onClick javascript popup window problem

i have made it in #2 way - that was described in my last post
it works great (and opens in browser window:P )

Sławek Sobótka

> Someone has made it (the onclick popup) ! You can find it there : 
> http://www.jenia.org
> Or view a demo here : http://www.jenia.org/TestPopup/jsp/index.jsp
> That don't solve my problem entirely, because I want my page to be 
> opened in a browser window, but I think I gone use it somewhere else in 
> my application.
> Thanks for the contribution ;)
>
> Clément
>
> -Message d'origine-
> De : Sean Schofield [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 21 juillet 2005 16:12
> À : MyFaces Discussion
> Objet : Re: commandLink and onClick javascript popup window problem
>
> I think your problem is that you are opening the window with an
> *onclick* javascript even.  This has nothing to do with the JSF
> lifecycle.  The regular commandLink approach (without using onclick)
> works because you post back (via a form) to the same page.  In your
> case you are just opening the page in a new window.  How would JSF
> know the new values from that?
>
> sean
>
> On 7/21/05, Clément Maignien <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> Here is the situation :
>>
>> I have a JSF page (result.jsp) with dataTable component with a 
>> commandLink
>> in one of his columns.
>>
>> When clicking on this commandLink, I would like to open a popup window
>> (detailStockInv.jsp) to display detail informations about the line that 
>> has
>> been clicked.
>>
>> Here is the code I wrote :
>>
>> >
>> ...
>>
>> ... 
>>
>>...
>>
>>
>>
>> 
>>
>> 
>>
>> 
>>
>> > actionListener="#{stockBean.updateDetailStock}
>>
>>
>> onclick="window.open('detailStockInv.jsp','','width=700,height=400,top=100,left=100')">
>>
>>
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> ...
>>
>> 
>>
>>
>>
>> I've put an actionListener to update datas (a bean property) that are
>> displayed in the popup page (detailStockInv.jsp) in a dataTable 
>> component.
>>
>>
>>
>> My popup is opened and displayed when I click one of the commandLink of 
>> my
>> results dataTable, but the problem is that the bean values that are 
>> read by
>> my popup page are the previous ones : the first time I click a 
>> commandLink,
>> the values displayed by the popup are not the ones updated by my
>> actionListener but the initial ones (inited in the bean constructor). 
>> The
>> second time I click a commandLink, the values of the line I cliked 
>> before
>> are displayed.
>>
>>
>>
>> In my opinion, the popup is displayed before the update model value 
>> phase of
>> the JSF life cycle occurs. As a consequence, the previous bean values 
>> are
>> displayed in my popup page.
>>
>> To confirm that, I tried not to display this page in a popup, but in the
>> same window (normal flow) with the action property of the commandLink :
>>
>> > action="#{stockBean.showDetailAction}"
>>
>> 
>>
>>
>>
>> 
>>
>>
>>
>> The showDetailAction action and the updateDetailStock actionListener are
>> doing exactly the same work (updating the detail values of my bean), 
>> except
>> that it return a navigation result to display the detailStockInv.jsp 
>> page
>>
>> In this way, the values that are displayed in the detailStockInv.jsp 
>> are the
>> good ones (the bean's ones).
>>
>>
>>
>> Is there a way to force the update value phase before the popup is 
>> displayed
>> ? Maybe the way I call the popup isn't the right one ... don't know.
>>
>>
>>
>> Please help, thanks :D
>>
>>
>>
>> Clément Maignien.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>




Re: RE : commandLink and onClick javascript popup window problem

2005-07-22 Thread Slawek

i have made it in #2 way - that was described in my last post
it works great (and opens in browser window:P )

Sławek Sobótka

Someone has made it (the onclick popup) ! You can find it there : 
http://www.jenia.org

Or view a demo here : http://www.jenia.org/TestPopup/jsp/index.jsp
That don't solve my problem entirely, because I want my page to be 
opened in a browser window, but I think I gone use it somewhere else in 
my application.

Thanks for the contribution ;)

Clément

-Message d'origine-
De : Sean Schofield [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 21 juillet 2005 16:12
À : MyFaces Discussion
Objet : Re: commandLink and onClick javascript popup window problem

I think your problem is that you are opening the window with an
*onclick* javascript even.  This has nothing to do with the JSF
lifecycle.  The regular commandLink approach (without using onclick)
works because you post back (via a form) to the same page.  In your
case you are just opening the page in a new window.  How would JSF
know the new values from that?

sean

On 7/21/05, Clément Maignien <[EMAIL PROTECTED]> wrote:




Here is the situation :

I have a JSF page (result.jsp) with dataTable component with a 
commandLink

in one of his columns.

When clicking on this commandLink, I would like to open a popup window
(detailStockInv.jsp) to display detail informations about the line that 
has

been clicked.

Here is the code I wrote :

 ... 

   ...

   



















...





I've put an actionListener to update datas (a bean property) that are
displayed in the popup page (detailStockInv.jsp) in a dataTable 
component.




My popup is opened and displayed when I click one of the commandLink of 
my
results dataTable, but the problem is that the bean values that are 
read by
my popup page are the previous ones : the first time I click a 
commandLink,

the values displayed by the popup are not the ones updated by my
actionListener but the initial ones (inited in the bean constructor). 
The
second time I click a commandLink, the values of the line I cliked 
before

are displayed.



In my opinion, the popup is displayed before the update model value 
phase of
the JSF life cycle occurs. As a consequence, the previous bean values 
are

displayed in my popup page.

To confirm that, I tried not to display this page in a popup, but in the
same window (normal flow) with the action property of the commandLink :

action="#{stockBean.showDetailAction}"




   





The showDetailAction action and the updateDetailStock actionListener are
doing exactly the same work (updating the detail values of my bean), 
except
that it return a navigation result to display the detailStockInv.jsp 
page


In this way, the values that are displayed in the detailStockInv.jsp 
are the

good ones (the bean's ones).



Is there a way to force the update value phase before the popup is 
displayed

? Maybe the way I call the popup isn't the right one ... don't know.



Please help, thanks :D



Clément Maignien.



















Re: new custom components

2005-07-22 Thread Werner Punz

May I dump the info on the wiki?

Werner


Aleksei Valikov wrote:

Hi.

Somebody posted this link on the exadel forum some of this stuff looks 
cool and the license seems to be apache compliant ;-)


http://www.jenia.org/jsp/index.jsp



I've just tried it and it seems to work (at least the popupBox).
I run pure MyFaces without any JSF RI libraries. Therefore I had to 
correct a couple of things before jenia4faces popup worked.


Here's my walkthrough:

1. Get jenia4faces-popup.jar and jenia4faces-commons.jar.
2. In jenia4faces-popup.jar/META-INF/jenia-popup.tld comment all 
references to com.sun.* classes. These are  and  
elements. This will remove references to JSF RI.

3. Add patched libraries to the webapp path.
4. Declare taglib prefix (ex. xmlns:jp="http://www.jenia.org/jsf/popup";) 
in the JSP.

5. Add servlet/servlet mapping


Jenia internal servlet
org.jenia.faces.util.Servlet
2


Jenia internal servlet
/jenia4faces/*


to the web.xml. This enables loading of javascript files from 
jenia4faces resources. (Actually, MyFaces follows the same approach in a 
different way.)


If you get something like "component not found", copy and paste 
jenia4faces-popup.jar/META-INF/jenia-popup-config.xml into the primary 
faces-config.xml.


And yes, once again
/me too: Thanks to the authors.

Bye.
/lexi





Re: new custom components

2005-07-22 Thread Aleksei Valikov

Hi.

Somebody posted this link on the exadel forum some of this stuff looks 
cool and the license seems to be apache compliant ;-)


http://www.jenia.org/jsp/index.jsp


I've just tried it and it seems to work (at least the popupBox).
I run pure MyFaces without any JSF RI libraries. Therefore I had to 
correct a couple of things before jenia4faces popup worked.


Here's my walkthrough:

1. Get jenia4faces-popup.jar and jenia4faces-commons.jar.
2. In jenia4faces-popup.jar/META-INF/jenia-popup.tld comment all 
references to com.sun.* classes. These are  and  
elements. This will remove references to JSF RI.

3. Add patched libraries to the webapp path.
4. Declare taglib prefix (ex. xmlns:jp="http://www.jenia.org/jsf/popup";) 
in the JSP.

5. Add servlet/servlet mapping


Jenia internal servlet
org.jenia.faces.util.Servlet
2


Jenia internal servlet
/jenia4faces/*


to the web.xml. This enables loading of javascript files from 
jenia4faces resources. (Actually, MyFaces follows the same approach in a 
different way.)


If you get something like "component not found", copy and paste 
jenia4faces-popup.jar/META-INF/jenia-popup-config.xml into the primary 
faces-config.xml.


And yes, once again
/me too: Thanks to the authors.

Bye.
/lexi


Re: Why does the styleClass attribute not work?

2005-07-22 Thread Bruno Aranda
Hi Randahl, coult you fill a JIRA issue so we don't forget this? We
will try to look at this as soon as possible...

Regards,

Bruno

P.S. and patches are always welcome ;-)

2005/7/22, Randahl Fink Isaksen <[EMAIL PROTECTED]>:
> Has anyone seen the x:dataList attbribute styleClass working? Setting it
> has no effect in my configuration - and I am using the latest MyFaces
> jars (see my example below).
> 
> Randahl
> 
> 
> 
> Randahl Fink Isaksen wrote:
> 
> > The documentation for the x:dataList says you can add a css style
> > class to it, but I am unable to make that work. This is what I have:
> >
> > >id="tree-menu"
> >styleClass="test"
> >value="#{myBean.cBean.menuItems}"
> >var="menuItem"
> >layout="unorderedList"
> >>
> >
> > I was expecting to see UL and LI elements with a style class attribute
> > containing the value "test", but instead I get raw unstyled UL and LI
> > tags like this:
> >
> > 
> > Velkommen
> > Farvel
> > 
> >
> > Had anyone had a similar problem?
> >
> > Thanks
> >
> > R.
> >
> >
> >
> 
>


Why does the styleClass attribute not work?

2005-07-22 Thread Randahl Fink Isaksen
Has anyone seen the x:dataList attbribute styleClass working? Setting it 
has no effect in my configuration - and I am using the latest MyFaces 
jars (see my example below).


Randahl



Randahl Fink Isaksen wrote:

The documentation for the x:dataList says you can add a css style 
class to it, but I am unable to make that work. This is what I have:


   

I was expecting to see UL and LI elements with a style class attribute 
containing the value "test", but instead I get raw unstyled UL and LI 
tags like this:



Velkommen
Farvel


Had anyone had a similar problem?

Thanks

R.







Re: new custom components

2005-07-22 Thread Aleksei Valikov

Hi.

Somebody posted this link on the exadel forum some of this stuff looks 
cool and the license seems to be apache compliant ;-)


http://www.jenia.org/jsp/index.jsp


Seems like JSF components are booming. ;)
Wonder if anyone has tried this with MyFaces.

Bye.
/lexi


Re: [OT] Java-/JSP-source displaying servlet

2005-07-22 Thread Martin Marinschek
it turns out that the Tobago people have something like that in their demo app.

I am going to ask them how they do it.

regards,

MartinOn 7/22/05, Jesse Alexander (KBSA 21) <[EMAIL PROTECTED]> wrote:
-Original Message-From: Sean Schofield [mailto:
[EMAIL PROTECTED]]I assume you have seen the SourceCodeServlet in the simple examples?It doesn't format the source code but it basically shows the jsp as itwould look in a text editor (before the jsf tags are processed into
HTML.)Probably not what you are looking for but its a start ...-/Original Message-No, I am afraid, I did not look at the samples. I will do thatimmediately.-Original Message-
IIRC, Tomcat comes with just such a gadget, to display the sources forthe servlet and JSP examples.Craig-/Original Message-Great, I'll check that out too.I remember also some eclipse-plugins... so maybe I can come up with
something.In the best case we can pep up the source-code-servlet also for thesample-applications.Thanks for the pointersAlexander


Re: Contribution of component library planned, live demo available

2005-07-22 Thread Werner Punz

Aleksei Valikov wrote:



The demos look simply great! Looking forward for your contribution - 
I've got a lot of work for your components. ;)



obligatory /me too post




Re: Contribution of component library planned, live demo available

2005-07-22 Thread Aleksei Valikov

Hi.


We showed them some of our online examples visible at

http://tobago.atanion.net

and we all agreed, that it is important to build up an open-source- 
based community around this stuff.


We learned how such a contribution in the ASF world works. So we are  
willing to add our component library into the incubator project to  
build such a communitiy.


We are really interessted in your feedback regarding our examples.  
Unfortunatelly the descriptive text in the demo is not available in  
English yet.


The demos look simply great! Looking forward for your contribution - 
I've got a lot of work for your components. ;)


Bye.
/lexi


RE: [OT] Java-/JSP-source displaying servlet

2005-07-22 Thread Jesse Alexander (KBSA 21)
-Original Message-
From: Sean Schofield [mailto:[EMAIL PROTECTED] 
I assume you have seen the SourceCodeServlet in the simple examples? 
It doesn't format the source code but it basically shows the jsp as it
would look in a text editor (before the jsf tags are processed into
HTML.)

Probably not what you are looking for but its a start ...
-/Original Message-

No, I am afraid, I did not look at the samples. I will do that 
immediately.


-Original Message-
IIRC, Tomcat comes with just such a gadget, to display the sources for
the servlet and JSP examples.

Craig
-/Original Message-

Great, I'll check that out too.


I remember also some eclipse-plugins... so maybe I can come up with 
something.
In the best case we can pep up the source-code-servlet also for the 
sample-applications.


Thanks for the pointers
Alexander


Re: [OT] Java-/JSP-source displaying servlet

2005-07-22 Thread Martin Marinschek
no, sorry,

there might be something like this in Jalopy, though?

but if you do something like that - it would make a great component for MyFaces ;)

regards,

MartinOn 7/22/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
IIRC, Tomcat comes with just such a gadget, to display the sources forthe servlet and JSP examples.CraigOn 7/21/05, Jesse Alexander (KBSA 21) <[EMAIL PROTECTED]
> wrote:> Hi>> for a sample-webapp I need a servlet that can render> formatted java- and jsp-sourcecode.>> Has somebody such a servlet (or a java-class) or do you> know of a library I could use.
>> Thanks in advance> Alexander>


Re: WML in MyFaces

2005-07-22 Thread Martin Marinschek
Well, after our current SVN reorg the WML tag library kind of got lost ;)

it should already be back in the nightly builds, though...

regards,

MartinOn 7/21/05, aaronbartell <[EMAIL PROTECTED]> wrote:





I am going to be 
writing a WML application and was excited to dig in with MyFaces because I have 
seen (or thought I saw) the tags for MyFaces WML implementation in the 
past.  Now I am having trouble finding the WML tag library in any of the 
downloads or even mentioned on the MyFaces.apache.org website.  I have 
found a few threads in the forum archive, but nothing that points me in any 
direction.
 
Could somebody tell 
me where to start looking? 
 
Aaron Bartell




RE : commandLink and onClick javascript popup window problem

2005-07-22 Thread Clément Maignien
Someone has made it (the onclick popup) ! You can find it there : 
http://www.jenia.org
Or view a demo here : http://www.jenia.org/TestPopup/jsp/index.jsp
That don't solve my problem entirely, because I want my page to be opened in a 
browser window, but I think I gone use it somewhere else in my application.
Thanks for the contribution ;)

Clément

-Message d'origine-
De : Sean Schofield [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 21 juillet 2005 16:12
À : MyFaces Discussion
Objet : Re: commandLink and onClick javascript popup window problem

I think your problem is that you are opening the window with an
*onclick* javascript even.  This has nothing to do with the JSF
lifecycle.  The regular commandLink approach (without using onclick)
works because you post back (via a form) to the same page.  In your
case you are just opening the page in a new window.  How would JSF
know the new values from that?

sean

On 7/21/05, Clément Maignien <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> Here is the situation : 
> 
> I have a JSF page (result.jsp) with dataTable component with a commandLink
> in one of his columns. 
> 
> When clicking on this commandLink, I would like to open a popup window
> (detailStockInv.jsp) to display detail informations about the line that has
> been clicked. 
> 
> Here is the code I wrote : 
> 
>  
> ... 
> 
> ...  
> 
>... 
> 
> 
> 
>  
> 
> 
> 
>  
> 
>  actionListener="#{stockBean.updateDetailStock} 
> 
>
> onclick="window.open('detailStockInv.jsp','','width=700,height=400,top=100,left=100')">
> 
> 
> 
>  
> 
>  
> 
>  
> 
>  
> 
> ... 
> 
>  
> 
>   
> 
> I've put an actionListener to update datas (a bean property) that are
> displayed in the popup page (detailStockInv.jsp) in a dataTable component. 
> 
>   
> 
> My popup is opened and displayed when I click one of the commandLink of my
> results dataTable, but the problem is that the bean values that are read by
> my popup page are the previous ones : the first time I click a commandLink,
> the values displayed by the popup are not the ones updated by my
> actionListener but the initial ones (inited in the bean constructor). The
> second time I click a commandLink, the values of the line I cliked before
> are displayed. 
> 
>   
> 
> In my opinion, the popup is displayed before the update model value phase of
> the JSF life cycle occurs. As a consequence, the previous bean values are
> displayed in my popup page. 
> 
> To confirm that, I tried not to display this page in a popup, but in the
> same window (normal flow) with the action property of the commandLink : 
> 
>  
>  
> 
> 
> 
>  
> 
>   
> 
> The showDetailAction action and the updateDetailStock actionListener are
> doing exactly the same work (updating the detail values of my bean), except
> that it return a navigation result to display the detailStockInv.jsp page 
> 
> In this way, the values that are displayed in the detailStockInv.jsp are the
> good ones (the bean's ones). 
> 
>   
> 
> Is there a way to force the update value phase before the popup is displayed
> ? Maybe the way I call the popup isn't the right one ... don't know. 
> 
>   
> 
> Please help, thanks :D 
> 
>   
> 
> Clément Maignien. 
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>


Re: I cannot load tags of myfaces 1.0.9 (20050711) in Eclipse 3.1 final and JBossIDE-1.5M2-ALL ...

2005-07-22 Thread Bruno Aranda
Fabio, remove the semicolons (;) after the uri from the taglib declarations...

 <%@ taglib uri="http://java.sun.com/jsf/html";; prefix="h"%>
 <%@ taglib uri="http://java.sun.com/jsf/core";; prefix="f"%>
 <%@ taglib uri="http://myfaces.apache.org/extensions";; prefix="x"%>

should be:

<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/extensions"; prefix="x"%>

Regards,

Bruno

2005/7/21, fabio quimbay <[EMAIL PROTECTED]>:
> Greettings, Dennis ...
> 
> It will leave jars in WEB-INF/lib according to as it describes the
> especficación to it, the truth didn't know it; although I continue
> with the problem of not being able to load tags from a page JSP in
> eclipse 3.1. I have been enough time with this restlessness and not
> yet I have managed to find a solution. Thanks.
> 
> 2005/7/21, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> >
> > Are the jar files from the standard release?
> >
> > If so, remove the myfaces tld files and the taglib elements from the DD.  We
> > don't have to declare TLs anymore.  The new spec mandates that the container
> > to automatically make TLs available ... if they are located in certain
> > places.  Those certain places include inside the manifest of a jar that is
> > inside /WEB-INF/lib , which you have done already by placing the myfaces
> > jars under lib.  I don't think this will help you with eclipse, but it will
> > save you a second post to the list.
> >
> > Dennis Byrne
> >
> 
> 
> --
> fabio quimbay
>


Re: Contribution of component library planned, live demo available

2005-07-22 Thread Werner Punz

Martin Marinschek wrote:
Well, for large code contributions, which this component set would 
obviously be, we have to go through the incubator to make sure that all 
intellectual property issues are solved and also that there is an 
interest in the community.


As with Matthias and me, we have been very interested in what we were 
shown yesterday ;)


It seems as we might be ending up with a set of competing libraries 
under the hood of Apache MyFaces, with the possibility to decide upon a 
set of components based on your preferences.


Well might not be the worst thing to do, because yesterday I stumbled 
upon another excellent component library under the Apache2 license which 
somebody posted the link for in the Exadel forums (I posted the link 
already but here it is again http://www.jenia.org/jsp/index.jsp)


guess in the long run there might be a splitting into several component 
packs necessary.


Werner