RE: css problem with default input type="text"

2006-05-23 Thread David Friedman
Try this:

input[type="text"] { color: #EFEFEF; }
input[type="submit"] { color: yellow; }

Regards,
David

-Original Message-
From: Hansjörg Meuschel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 24, 2006 2:26 AM
To: MyFaces Discussion
Subject: css problem with default input type="text"


Hello,
how do I define a default background color for text input elements
only(!) in css?

Defining something like
input {
background-color: #EFEFEF;
}
makes all buttons look ugly so I'm searching for a way to define this
for text type inputs only...

any ideas?
greets hans



Re: tree2 expand/collapse

2006-05-23 Thread Adrien FOURES

Hi Chris,
I have the same problem, and i found a solution to pass over. i delete 
my myfaces tree : name "tree1", in the jsf tree component, and its works 
now fine.


   // delete component "tree1" directly in the jsf tree 
component
   
if(FacesContext.getCurrentInstance().getViewRoot().findComponent("tree1") 
!= null){
   List listTmp = 
FacesContext.getCurrentInstance().getViewRoot().findComponent("tree1").getParent().getChildren();
   if(listTmp!=null)   
   
listTmp.remove(FacesContext.getCurrentInstance().getViewRoot().findComponent("tree1"));

   }
  
   treeData1 = . // load data

   treeModel1 = new TreeModelBase(treeData1); // load model
   treeHtml1 = new HtmlTree(); // create new instance for 
binding



   

   


Adrien



Sean Schofield wrote:


I think this is the issue:

http://issues.apache.org/jira/browse/TOMAHAWK-437

Its on my list of tree2 issues to address.  Right now we're sorting
through some big picture tomahawk and core issues.

Sean


On 5/23/06, Chris Hane <[EMAIL PROTECTED]> wrote:


This isn't going to help too much; but I started to run into the same
things when I was using tree2 and client side expand/collapse.

What I tracked it down to was the expand/collapse state is stored in a
cookie that is relevant for a the tree2 component on a specific screen.
For me that meant when I had to the same screen open in two windows
(different records though), they "shared" the expand/collapse state.
This causes weird looking behavior (e.g., expand three node in one
screen, go to the second screen and expand a node and three are expanded
(the same three from the first screen)).

At the time I wasn't setup to explore the tomahawk code so I found a
work around for my specific case (I expand all nodes all the time and
don't let the user collapse). I opened a JIRA on this issue - the
archives have the specific #.

Having said that, I'm not an expert with tomahawk - actually just
starting so I might be doing something wrong...

Chris

Christopher J. Bowerman wrote:
>
> Hi,
>
> I'm using a tree2 component. My problem seems to have to do with tree
> state. The tree works fine the first time I render it, but I have a
> "home" button that starts the user input over again and builds a new
> tree. When the new tree is rendered the nodes that were expanded in
> the earlier tree are expanded in this one as well. I'd like the tree
> to be fully collapsed whenever I've built a new tree. Can anybody
> actually tell me how I can do this? I've seen other mention of it on
> previous posts, but they were almost a year ago and no mention how to
> actually go about it. Any help would be greatly appreciated.
>
> Thanks.
>
> ==
>
> Christopher J. Bowerman
>
> Internet Applications Developer
>
> SAIC-Frederick
>
> phone: 301.846.5275
>
> email: [EMAIL PROTECTED]
> 
>
> 


>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 
5/22/2006

>


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006







Re: css problem with default input type="text"

2006-05-23 Thread Hansjörg Meuschel

Thanks Zhi,
but it does not because I want to change the style of a text input 
rendered by the calendar component - i can't set any style attributes 
for the input (as far as I know...)


Zhi wrote:

Hi, 


Actually, neither do I know the answer. But I have a work around since I have 
the same requirement a little bit like yours.

In html,



In CSS,
input.mytext {
   background-color: #EFEFEF;
}

Hope it helps.

Zhi


- Original Message - 
From: "Hansjörg Meuschel" <[EMAIL PROTECTED]>

To: "MyFaces Discussion" 
Sent: Wednesday, May 24, 2006 2:25 PM
Subject: css problem with default input type="text"


 


Hello,
how do I define a default background color for text input elements 
only(!) in css?


Defining something like
input {
  background-color: #EFEFEF;
}
makes all buttons look ugly so I'm searching for a way to define this 
for text type inputs only...


any ideas?
greets hans





Re: css problem with default input type="text"

2006-05-23 Thread Zhi
Hi, 

Actually, neither do I know the answer. But I have a work around since I have 
the same requirement a little bit like yours.

In html,



In CSS,
input.mytext {
background-color: #EFEFEF;
}

Hope it helps.

Zhi


- Original Message - 
From: "Hansjörg Meuschel" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" 
Sent: Wednesday, May 24, 2006 2:25 PM
Subject: css problem with default input type="text"


> Hello,
> how do I define a default background color for text input elements 
> only(!) in css?
> 
> Defining something like
> input {
>background-color: #EFEFEF;
> }
> makes all buttons look ugly so I'm searching for a way to define this 
> for text type inputs only...
> 
> any ideas?
> greets hans

css problem with default input type="text"

2006-05-23 Thread Hansjörg Meuschel

Hello,
how do I define a default background color for text input elements 
only(!) in css?


Defining something like
input {
   background-color: #EFEFEF;
}
makes all buttons look ugly so I'm searching for a way to define this 
for text type inputs only...


any ideas?
greets hans


Re: Sandbox nightly

2006-05-23 Thread Sean Schofield

Sandbox is not built nightly (at the moment.)

Sean

On 5/23/06, Paul Spencer <[EMAIL PROTECTED]> wrote:

Dennis,
The short answer is :
   http://cvs.apache.org/maven-snapshot-repository

Below is the configuration from my POM.xml that downloads the newest
snapshot automatically.
 
   org.apache.myfaces.core
   myfaces-api
   1.1.4-SNAPSHOT
 
 
   org.apache.myfaces.core
   myfaces-impl
   1.1.4-SNAPSHOT
 
 
   org.apache.myfaces.tomahawk
   tomahawk
   1.1.3-SNAPSHOT
 
...
   
  
  
true
  
  
true
  
  myfaces-repo
  http://myfaces.zones.apache.org/dist/maven-repository
  
  
  
false
  
  
true
  
  apache-maven-snapshots
  http://cvs.apache.org/maven-snapshot-repository
  


Paul Spencer


Dennis Gesker wrote:
> I was hoping to find a recent copy of the sandbox jar to try out the
> inputSuggest control. I thought I might find it at
> http://people.apache.org/builds/myfaces/nightly/ but no luck.
>
> Is there another url where I might find a current snapshot?
>
> Thanks
> Dennis
>
>





Tree2 Problem [newbie]

2006-05-23 Thread Tim Schreiner

Hello,

i want to have a tree2 tomahawk component, but something is going wrong. i
alread used the search function without success. i also used the Sun RI or
MyFaces Impl with Tomahawk. i also use the newest release of tomahawk. As
IDE i am using myeclipse. 

Most of you already knows the Tree2 Example of Myfaces.. tomcat throws me an
error like this:

org.apache.jasper.JasperException

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)

com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java: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)

root cause

java.lang.NullPointerException

org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeBegin(HtmlTreeRenderer.java:145)

javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:675)

org.apache.myfaces.custom.tree2.UITreeData.encodeBegin(UITreeData.java:243)
javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:584)
javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:536)

org.apache.jsp.tree_jsp._jspx_meth_t_tree2_0(org.apache.jsp.tree_jsp:249)
org.apache.jsp.tree_jsp._jspx_meth_h_form_0(org.apache.jsp.tree_jsp:191)
org.apache.jsp.tree_jsp._jspx_meth_f_view_0(org.apache.jsp.tree_jsp:158)
org.apache.jsp.tree_jsp._jspService(org.apache.jsp.tree_jsp:111)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)

com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java: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)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.12 logs.

i would be thankfull for your helps. 

Thanks.. 
Tim
--
View this message in context: 
http://www.nabble.com/Tree2+Problem+-newbie--t1672604.html#a4534194
Sent from the MyFaces - Users forum at Nabble.com.



Re: datatable and selecting a row event

2006-05-23 Thread Alex Burton
Thanks! that worked a treat!On 5/23/06, Jeff Bischoff <[EMAIL PROTECTED]> wrote:
Here is how I catch the 'row id' in my application:    
       value="#{data.sequenceNum}" />    This is generalized, stripped-down code - obviously I have other columnsand such. The user will see in the first column a list of numbers. If
they click a number, the  will update theproperty on the bean with the value they clicked (data.sequenceNum).Then the  tells navigation to reload the page. We use
somewhat odd navigation on our site, so don't get confused by that.This works because* I have a sequence number stored in each bean of the collection thatdataTable is displaying* I can access that bean in the jsp by using the "var" attribute in
dataTableIf your data doesn't actually have a row id property, perhaps you shouldadd one.Regards,Jeff BischoffKenneth L Kurz & Assoc, Inc.Alex Burton wrote:> Thanks Volker.
>> How do you catch the 'row id' though?>> Cheers,> Alex.>> On 5/23/06, *Volker Weber* <[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote:>> Hi Alex,>> we do this by using h:commandlink, with parameter, for displaying> the row data.
> But you need to hit the text when clicking on a row.>> regards,>>   Volker>> 2006/5/23, Alex Burton < [EMAIL PROTECTED]
> [EMAIL PROTECTED]>>:>  > Hi all,>  >>  >  I'm trying to use a datagrid as a way to quickly find and select a
>  > particular item from a large list of items. The items have several>  > attributes I wish to display and can number in the 100's, so a> drop down>  > list isn't the right way to go...
>  >>  >  So... I have my datagrid displaying beautifully... but am now> stumped on>  > how to throw an even to catch a row selection... I know there are the>  > rowOnClick="_javascript_" attributes in the datagrid, but how do i
> bind that>  > to something useful?>  >>  >  Anyone have any pointers? Ideally I'd like to get the> "forceIdIndexFormula">  > value (or object it represents in my backing bean).
>  >>  >  Thanks in advance,>  >  Alex.>  >>  > -->  > "We should move forwards, not backwards, upwards, not sideways,> and always
>  > twirling, twirling towards victory!"> --> "We should move forwards, not backwards, upwards, not sideways, and> always twirling, twirling towards victory!"
-- "We should move forwards, not backwards, upwards, not sideways, and always twirling, twirling towards victory!"


Re: Can one JSF page with three forms which work separately?

2006-05-23 Thread Anthony Hong

Any example you can show for me, Andrew?
Ajaxanywhere is lack of documents

On 5/23/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:

I have it working fine and with server side zones, but I don't
directly use AAUtils. I created ajaxCommandLink and ajaxCommandButton
controls for my use, that take an ajaxZone attribute on the
components. On the decode of these items, I queue a custom event, that
simply adds the zones to the response. This way the view still
dictates the zones, but the code runs on the server, and there is no
messy javascript to worry about.

I also use 1.1.0.6 because I couldn't get 1.2 to work.

-Andrew

On 5/23/06, Murat Hazer <[EMAIL PROTECTED]> wrote:
> I talked with someone who successfully uses ajaxanaywhere with latest
> myfaces, only difference between me and him is he defines the zones to be
> refreshed on the server side, i define them on the client side. I don't want
> to put ajaxanywhere related ( AAutils.()) java code to my backing beans.
> May be you can try server side code, it may work, then you can inform as it
> worked or not.
>
>
> regards...
>
> On 5/23/06, Anthony Hong <[EMAIL PROTECTED]> wrote:
> > :- (
> > I have the same problem. I tired it yesterday, It doesn't work for me.
> >
> > On 5/23/06, Murat Hazer <[EMAIL PROTECTED]> wrote:
> > > if they don't fillfull your request you can try ajaxanywhere [1]. (but i
> > > couldn't make it work with latest myfaces and tomahawk).
> > >
> > > [1] http://ajaxanywhere.sourceforge.net/
> > >
> > > regards...
> > >
> > >
> > > On 5/23/06, Anthony Hong < [EMAIL PROTECTED]> wrote:
> > > > I also need page navigation in each div.
> > > > Example:
> > > > In div address information, Click Add button will display add form
> > > > page. But others two divs are not changed
> > > >
> > > > Can sandbox supports this? I doesn't see Myfaces demo. It describes in
> > > > multiplue form saving partial. I guess my requirement can not be
> > > > fullfilled
> > > >
> > > >
> > > > On 5/23/06, Murat Hazer <[EMAIL PROTECTED]> wrote:
> > > > > Sandbox has two components which may help you, s:commandButtonAjax
> and
> > > > > s:subForm.
> > > > >
> > > > > regards..
> > > > >
> > > > >
> > > > > On 5/22/06, Anthony Hong < [EMAIL PROTECTED] > wrote:
> > > > > > I have a web page with three form in each div, say:
> > > > > > div 1: base information
> > > > > > div 2: address information
> > > > > > div 3: phone information.
> > > > > >
> > > > > > Each of them is a list table with add, edit, delete function.
> > > > > > Can I operator each div in one page like I processing each jsf
> page in
> > > a
> > > > > div?
> > > > > > I think this should with ajax supports, right?
> > > > > > If it can be achieved, which ajax framework supports well with
> myfaces
> > > > > > to achieves my goad.
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Anthony Hong
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Murat HAZER
> > > > > Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
> > > > > Tel - Phone: +90 222 335 05 80 - 1395
> > > > > Cep Tel - Mobile Phone: +90 532 472 00 63
> > > > > Blog URL: http://www.projedunyasi.org
> > > > > Yahoo Group:
> > > > > http://groups.yahoo.com/group/malatyafenlisesi/
> > > >
> > > >
> > > > --
> > > >
> > > > Anthony Hong
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > Murat HAZER
> > > Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
> > > Tel - Phone: +90 222 335 05 80 - 1395
> > > Cep Tel - Mobile Phone: +90 532 472 00 63
> > > Blog URL: http://www.projedunyasi.org
> > > Yahoo Group:
> > > http://groups.yahoo.com/group/malatyafenlisesi/
> >
> >
> > --
> >
> > Anthony Hong
> >
>
>
>
> --
>
> Murat HAZER
> Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
>  Tel - Phone: +90 222 335 05 80 - 1395
> Cep Tel - Mobile Phone: +90 532 472 00 63
> Blog URL: http://www.projedunyasi.org
> Yahoo Group:
> http://groups.yahoo.com/group/malatyafenlisesi/




--

Anthony Hong


Re: Sandbox nightly

2006-05-23 Thread Paul Spencer

Dennis,
The short answer is :
  http://cvs.apache.org/maven-snapshot-repository

Below is the configuration from my POM.xml that downloads the newest
snapshot automatically.

  org.apache.myfaces.core
  myfaces-api
  1.1.4-SNAPSHOT


  org.apache.myfaces.core
  myfaces-impl
  1.1.4-SNAPSHOT


  org.apache.myfaces.tomahawk
  tomahawk
  1.1.3-SNAPSHOT

...
  
 
 
   true
 
 
   true
 
 myfaces-repo
 http://myfaces.zones.apache.org/dist/maven-repository
 
 
 
   false
 
 
   true
 
 apache-maven-snapshots
 http://cvs.apache.org/maven-snapshot-repository
 
   

Paul Spencer


Dennis Gesker wrote:

I was hoping to find a recent copy of the sandbox jar to try out the
inputSuggest control. I thought I might find it at
http://people.apache.org/builds/myfaces/nightly/ but no luck.

Is there another url where I might find a current snapshot?

Thanks
Dennis







Sandbox nightly

2006-05-23 Thread Dennis Gesker
I was hoping to find a recent copy of the sandbox jar to try out the
inputSuggest control. I thought I might find it at
http://people.apache.org/builds/myfaces/nightly/ but no luck.

Is there another url where I might find a current snapshot?

Thanks
Dennis


-- 
Dennis R. Gesker
email: [EMAIL PROTECTED]
gpg key: 0xEFA10A51





Re: Tomahawk 1.1.2 is not in Maven repository

2006-05-23 Thread Paul Spencer

Sean,
Thank you.

FYI: I have be using the Tomahawk 1.1.3-SNAPSHOT, build number 25 dated 
 20060522060820, from the snapshot repository.


Paul Spencer

Sean Schofield wrote:

No you are in the right place.  There was some kind of mixup.  We'll
be getting to this (hopefully this week.)  Right now focus is on
another release.

Sean

On 5/23/06, Paul Spencer <[EMAIL PROTECTED]> wrote:

Tomahawk 1.1.2 is not in the Maven repository
   http://myfaces.zones.apache.org/dist/maven-repository/

Am I looking in the wrong place?

Paul Spencer







Re: Tomahawk 1.1.2 is not in Maven repository

2006-05-23 Thread Paul Spencer

Sean,
Thank you.

FYI: I have be using the Tomahawk 1.1.3-SNAPSHOT, build number 25 dated
 20060522060820, from the snapshot repository.

Paul Spencer

Sean Schofield wrote:

No you are in the right place.  There was some kind of mixup.  We'll
be getting to this (hopefully this week.)  Right now focus is on
another release.

Sean

On 5/23/06, Paul Spencer <[EMAIL PROTECTED]> wrote:

Tomahawk 1.1.2 is not in the Maven repository
   http://myfaces.zones.apache.org/dist/maven-repository/

Am I looking in the wrong place?

Paul Spencer








Re: Tomahawk 1.1.2 is not in Maven repository

2006-05-23 Thread Sean Schofield

No you are in the right place.  There was some kind of mixup.  We'll
be getting to this (hopefully this week.)  Right now focus is on
another release.

Sean

On 5/23/06, Paul Spencer <[EMAIL PROTECTED]> wrote:

Tomahawk 1.1.2 is not in the Maven repository
   http://myfaces.zones.apache.org/dist/maven-repository/

Am I looking in the wrong place?

Paul Spencer



Re: Tree2 & CheckedNode question

2006-05-23 Thread Philippe Lamote

 Oops, oh well. Didn't take very long at all 

Aiii, and this is a fine example of how to offend Matthias in  
public ;-)  (joke)


Phil

Ps Great minds think alike.

On 23 May 2006, at 22:40, Andrew Robinson wrote:




Re: tree2 expand/collapse

2006-05-23 Thread Sean Schofield

I think this is the issue:

http://issues.apache.org/jira/browse/TOMAHAWK-437

Its on my list of tree2 issues to address.  Right now we're sorting
through some big picture tomahawk and core issues.

Sean


On 5/23/06, Chris Hane <[EMAIL PROTECTED]> wrote:

This isn't going to help too much; but I started to run into the same
things when I was using tree2 and client side expand/collapse.

What I tracked it down to was the expand/collapse state is stored in a
cookie that is relevant for a the tree2 component on a specific screen.
For me that meant when I had to the same screen open in two windows
(different records though), they "shared" the expand/collapse state.
This causes weird looking behavior (e.g., expand three node in one
screen, go to the second screen and expand a node and three are expanded
(the same three from the first screen)).

At the time I wasn't setup to explore the tomahawk code so I found a
work around for my specific case (I expand all nodes all the time and
don't let the user collapse). I opened a JIRA on this issue - the
archives have the specific #.

Having said that, I'm not an expert with tomahawk - actually just
starting so I might be doing something wrong...

Chris

Christopher J. Bowerman wrote:
>
> Hi,
>
> I'm using a tree2 component. My problem seems to have to do with tree
> state. The tree works fine the first time I render it, but I have a
> "home" button that starts the user input over again and builds a new
> tree. When the new tree is rendered the nodes that were expanded in
> the earlier tree are expanded in this one as well. I'd like the tree
> to be fully collapsed whenever I've built a new tree. Can anybody
> actually tell me how I can do this? I've seen other mention of it on
> previous posts, but they were almost a year ago and no mention how to
> actually go about it. Any help would be greatly appreciated.
>
> Thanks.
>
> ==
>
> Christopher J. Bowerman
>
> Internet Applications Developer
>
> SAIC-Frederick
>
> phone: 301.846.5275
>
> email: [EMAIL PROTECTED]
> 
>
> 
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006
>


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006




Re: Tree2 & CheckedNode question

2006-05-23 Thread Andrew Robinson

Oops, oh well. Didn't take very long at all

On 5/23/06, Philippe Lamote <[EMAIL PROTECTED]> wrote:

Hi Andrew... I'm afraid you did some double work, this is exactly
what Matthias's TreeNodeChecked does...
That's why he can do a "element.isChecked()" method inside his
processing method :-)
-Phil

On 23 May 2006, at 22:14, Andrew Robinson wrote:

I *JUST* implemented another solution using a custom node:

Node class:
class CustomNode extends TreeNodeBase {
  private boolean selected;
  public boolean isSelected() { return this.selected; }
  public void setSelected(boolean selected) { this.selected =
selected; }
}

XHTML:

  


  


Now the selected state is on the tree node in the model where it
logically belongs. Now you can just iterate the nodes to determine
which are selected (or put logic in the setSelected(boolean) method of
the node).

-Andrew



On 5/23/06, Philippe Lamote <[EMAIL PROTECTED]> wrote:
> Thx Matti, it helped indeed.
> This is what I was looking for.
> I believe however this only works for trees having depth==1, whereas
> Michael's method works for all depths, perhaps that is an advantage.
> For Michael's method, I wonder whether, if a user changes his mind
> e.g. 3 times on the same node, producing 3 ValueChangeEvents, the 2
> redundant VCE will be processed. Also this method would be less
> efficient with lost of nodes having only few leaves. Like
> Michaelsaid, it really depends on the biz casus.
>
> As for the depth-1 thing, adding a recursive call (like: if hasKids()
> {recursive_call()_on_kids();}  to your processNodes() method would
> most likely solve that, making it a depth-first algorithm.
>
> & Thanks for the input,
> Phil
> Ps Matthias, wouldn't it a good idea to add this to http://
> wiki.apache.org/myfaces/Tree2 ?
>
>
> On 23 May 2006, at 17:55, Matthias Wessendorf wrote:
>
> Phil-
>
> I used it this way:
>
> JSP:
> ...
>  varNodeToggler="t" var="node">
> 
>   
>
>  border="0"/>
>  styleClass="nodeFolder"/>
>   
> 
> ...
> 
> 
> 
> ...
>
>
> Backing Bean (constructor or init() in case of Shale's ViewControler)
> (btw. AnalysisFolder is an business object of me...)
>
> -
>
> tree = new TreeNodeBase("root","Analyses",false);
>
> for (Iterator iter = listOfAnalysisFolders.iterator(); iter.hasNext
> ();) {
>   AnalysisFolder element = (AnalysisFolder) iter.next();
>   tree.getChildren().add(
>  new TreeNodeChecked("analysisFolder", element.getName(),
> element.getId(), false, true));
>   selectedIds.add(new SelectItem(element.getId()));
> }
>
>
> -
>
>
> action method:
>
> -
>
> public String processNodes(){
>   List childs = tree.getChildren();
>   for (Iterator iter = childs.iterator(); iter.hasNext();) {
> TreeNodeChecked element = (TreeNodeChecked) iter.next();
> if(element.isChecked()==true) {
>   //do...
> }
>   }
>   ...
> }
> -
>
> HTH,
> Matthias
> On 5/23/06, Philippe Lamote <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm sory for this question, but there's not too much doc about this
> > on site, so... here we go:
> >
> > I want to make a tree2 with checkboxes that I only collect once
> > together, and I could use some advice:
> >
> > The examples I've seen, have the commandlink at every node, by
> > consequence fire off the second one gets clicked.
> >
> > What I want, is:
> > - a CLIENT side tree2 (for speed)
> > - with checkboxes on every leaf element
> > - multiple leafs can be checked simultaneously ("simultaneously"
> > meaning before a new request fires off)
> > - under the tree a cmd button to ONLY THEN fire off an action.
> >
> > The action should then perform an opeation on all the checked leafs.
> >
> > I guess thsi is possible, but how to do this best?
> > If possible, I'd like a solution without javascript to collect the
> > checked nodes, yet if no other way exits, that's fine too.
> > With js I thought of smth like: (if it works, "addToRequest(#
> > {node.identifier});" ... should add the node ID to the request. So
> > all checked nodes would be sent with the request wen the cmd button
> > under the tree gets clicked.)
> >
> >> var="node" varNodeToggler="t">
> > 
> > 
> >  > onclick="addToRequest(#
> > {node.identifier});" />
> >  
> >   > styleClass="#
> > {t.nodeSelected ? 'treeSetSelected':'treeSetUnselected'}"/>
> > 
> > 
> > 
> >
> > If possible, I would like to get rid of "addToRequest(#
> > {node.identifier});", of even better of the entire
> > "h:selectBooleanCheckbox" and use checkedNode (smth Matthias
> > Wessendorf provided us with for convenience - thank you
> Matthias! :-)
> >
> > Yet in that case, how to collect all the ckecked nodes at the server
> > side?
> > Is it necessary to walk over all the nodes and perform a isChecked
> > check? (if so, does someone here has some tested co

Re: Tree2 & CheckedNode question

2006-05-23 Thread Philippe Lamote
Hi Andrew... I'm afraid you did some double work, this is exactly  
what Matthias's TreeNodeChecked does...
That's why he can do a "element.isChecked()" method inside his  
processing method :-)

-Phil

On 23 May 2006, at 22:14, Andrew Robinson wrote:

I *JUST* implemented another solution using a custom node:

Node class:
class CustomNode extends TreeNodeBase {
 private boolean selected;
 public boolean isSelected() { return this.selected; }
 public void setSelected(boolean selected) { this.selected =  
selected; }

}

XHTML:

 
   
   
 


Now the selected state is on the tree node in the model where it
logically belongs. Now you can just iterate the nodes to determine
which are selected (or put logic in the setSelected(boolean) method of
the node).

-Andrew



On 5/23/06, Philippe Lamote <[EMAIL PROTECTED]> wrote:

Thx Matti, it helped indeed.
This is what I was looking for.
I believe however this only works for trees having depth==1, whereas
Michael's method works for all depths, perhaps that is an advantage.
For Michael's method, I wonder whether, if a user changes his mind
e.g. 3 times on the same node, producing 3 ValueChangeEvents, the 2
redundant VCE will be processed. Also this method would be less
efficient with lost of nodes having only few leaves. Like
Michaelsaid, it really depends on the biz casus.

As for the depth-1 thing, adding a recursive call (like: if hasKids()
{recursive_call()_on_kids();}  to your processNodes() method would
most likely solve that, making it a depth-first algorithm.

& Thanks for the input,
Phil
Ps Matthias, wouldn't it a good idea to add this to http://
wiki.apache.org/myfaces/Tree2 ?


On 23 May 2006, at 17:55, Matthias Wessendorf wrote:

Phil-

I used it this way:

JSP:
...


  
   
border="0"/>
styleClass="nodeFolder"/>

  

...



...


Backing Bean (constructor or init() in case of Shale's ViewControler)
(btw. AnalysisFolder is an business object of me...)

-

tree = new TreeNodeBase("root","Analyses",false);

for (Iterator iter = listOfAnalysisFolders.iterator(); iter.hasNext
();) {
  AnalysisFolder element = (AnalysisFolder) iter.next();
  tree.getChildren().add(
 new TreeNodeChecked("analysisFolder", element.getName(),
element.getId(), false, true));
  selectedIds.add(new SelectItem(element.getId()));
}


-


action method:

-

public String processNodes(){
  List childs = tree.getChildren();
  for (Iterator iter = childs.iterator(); iter.hasNext();) {
TreeNodeChecked element = (TreeNodeChecked) iter.next();
if(element.isChecked()==true) {
  //do...
}
  }
  ...
}
-

HTH,
Matthias
On 5/23/06, Philippe Lamote <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm sory for this question, but there's not too much doc about this
> on site, so... here we go:
>
> I want to make a tree2 with checkboxes that I only collect once
> together, and I could use some advice:
>
> The examples I've seen, have the commandlink at every node, by
> consequence fire off the second one gets clicked.
>
> What I want, is:
> - a CLIENT side tree2 (for speed)
> - with checkboxes on every leaf element
> - multiple leafs can be checked simultaneously ("simultaneously"
> meaning before a new request fires off)
> - under the tree a cmd button to ONLY THEN fire off an action.
>
> The action should then perform an opeation on all the checked leafs.
>
> I guess thsi is possible, but how to do this best?
> If possible, I'd like a solution without javascript to collect the
> checked nodes, yet if no other way exits, that's fine too.
> With js I thought of smth like: (if it works, "addToRequest(#
> {node.identifier});" ... should add the node ID to the request. So
> all checked nodes would be sent with the request wen the cmd button
> under the tree gets clicked.)
>
>var="node" varNodeToggler="t">
> 
> 
>  onclick="addToRequest(#
> {node.identifier});" />
>  
>   styleClass="#
> {t.nodeSelected ? 'treeSetSelected':'treeSetUnselected'}"/>
> 
> 
> 
>
> If possible, I would like to get rid of "addToRequest(#
> {node.identifier});", of even better of the entire
> "h:selectBooleanCheckbox" and use checkedNode (smth Matthias
> Wessendorf provided us with for convenience - thank you  
Matthias! :-)

>
> Yet in that case, how to collect all the ckecked nodes at the server
> side?
> Is it necessary to walk over all the nodes and perform a isChecked
> check? (if so, does someone here has some tested code for this?  
Would

> be a ice addition to http://wiki.apache.org/myfaces/Tree2 as well.
> I think this would also be a fine candidate for a build-in  
method, to

> ship with the ckeckNode tree. As with a checkednode tree, you have
> the great option to batch process all checked nodes at once,
> serverside, compared to all the servertrips per checked node you'd
> have withou

Re: Tree2 & CheckedNode question

2006-05-23 Thread Andrew Robinson

I *JUST* implemented another solution using a custom node:

Node class:
class CustomNode extends TreeNodeBase {
 private boolean selected;
 public boolean isSelected() { return this.selected; }
 public void setSelected(boolean selected) { this.selected = selected; }
}

XHTML:

 
   
   
 


Now the selected state is on the tree node in the model where it
logically belongs. Now you can just iterate the nodes to determine
which are selected (or put logic in the setSelected(boolean) method of
the node).

-Andrew



On 5/23/06, Philippe Lamote <[EMAIL PROTECTED]> wrote:

Thx Matti, it helped indeed.
This is what I was looking for.
I believe however this only works for trees having depth==1, whereas
Michael's method works for all depths, perhaps that is an advantage.
For Michael's method, I wonder whether, if a user changes his mind
e.g. 3 times on the same node, producing 3 ValueChangeEvents, the 2
redundant VCE will be processed. Also this method would be less
efficient with lost of nodes having only few leaves. Like
Michaelsaid, it really depends on the biz casus.

As for the depth-1 thing, adding a recursive call (like: if hasKids()
{recursive_call()_on_kids();}  to your processNodes() method would
most likely solve that, making it a depth-first algorithm.

& Thanks for the input,
Phil
Ps Matthias, wouldn't it a good idea to add this to http://
wiki.apache.org/myfaces/Tree2 ?


On 23 May 2006, at 17:55, Matthias Wessendorf wrote:

Phil-

I used it this way:

JSP:
...


  
   


  

...



...


Backing Bean (constructor or init() in case of Shale's ViewControler)
(btw. AnalysisFolder is an business object of me...)

-

tree = new TreeNodeBase("root","Analyses",false);

for (Iterator iter = listOfAnalysisFolders.iterator(); iter.hasNext
();) {
  AnalysisFolder element = (AnalysisFolder) iter.next();
  tree.getChildren().add(
 new TreeNodeChecked("analysisFolder", element.getName(),
element.getId(), false, true));
  selectedIds.add(new SelectItem(element.getId()));
}


-


action method:

-

public String processNodes(){
  List childs = tree.getChildren();
  for (Iterator iter = childs.iterator(); iter.hasNext();) {
TreeNodeChecked element = (TreeNodeChecked) iter.next();
if(element.isChecked()==true) {
  //do...
}
  }
  ...
}
-

HTH,
Matthias
On 5/23/06, Philippe Lamote <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm sory for this question, but there's not too much doc about this
> on site, so... here we go:
>
> I want to make a tree2 with checkboxes that I only collect once
> together, and I could use some advice:
>
> The examples I've seen, have the commandlink at every node, by
> consequence fire off the second one gets clicked.
>
> What I want, is:
> - a CLIENT side tree2 (for speed)
> - with checkboxes on every leaf element
> - multiple leafs can be checked simultaneously ("simultaneously"
> meaning before a new request fires off)
> - under the tree a cmd button to ONLY THEN fire off an action.
>
> The action should then perform an opeation on all the checked leafs.
>
> I guess thsi is possible, but how to do this best?
> If possible, I'd like a solution without javascript to collect the
> checked nodes, yet if no other way exits, that's fine too.
> With js I thought of smth like: (if it works, "addToRequest(#
> {node.identifier});" ... should add the node ID to the request. So
> all checked nodes would be sent with the request wen the cmd button
> under the tree gets clicked.)
>
>var="node" varNodeToggler="t">
> 
> 
>  onclick="addToRequest(#
> {node.identifier});" />
>  
>   styleClass="#
> {t.nodeSelected ? 'treeSetSelected':'treeSetUnselected'}"/>
> 
> 
> 
>
> If possible, I would like to get rid of "addToRequest(#
> {node.identifier});", of even better of the entire
> "h:selectBooleanCheckbox" and use checkedNode (smth Matthias
> Wessendorf provided us with for convenience - thank you Matthias! :-)
>
> Yet in that case, how to collect all the ckecked nodes at the server
> side?
> Is it necessary to walk over all the nodes and perform a isChecked
> check? (if so, does someone here has some tested code for this? Would
> be a ice addition to http://wiki.apache.org/myfaces/Tree2 as well.
> I think this would also be a fine candidate for a build-in method, to
> ship with the ckeckNode tree. As with a checkednode tree, you have
> the great option to batch process all checked nodes at once,
> serverside, compared to all the servertrips per checked node you'd
> have without a checkednode tree. (this is what I love most about it,
> it's a great idea, yet now I guess every dev has to program the same
> method over and over again for tree-traversal)
>
> Thanks in advance,
> Phil
>
>
>


--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessend

Re: Tree2 & CheckedNode question

2006-05-23 Thread Philippe Lamote

Thx Matti, it helped indeed.
This is what I was looking for.
I believe however this only works for trees having depth==1, whereas  
Michael's method works for all depths, perhaps that is an advantage.
For Michael's method, I wonder whether, if a user changes his mind  
e.g. 3 times on the same node, producing 3 ValueChangeEvents, the 2  
redundant VCE will be processed. Also this method would be less  
efficient with lost of nodes having only few leaves. Like  
Michaelsaid, it really depends on the biz casus.


As for the depth-1 thing, adding a recursive call (like: if hasKids() 
{recursive_call()_on_kids();}  to your processNodes() method would  
most likely solve that, making it a depth-first algorithm.


& Thanks for the input,
Phil
Ps Matthias, wouldn't it a good idea to add this to http:// 
wiki.apache.org/myfaces/Tree2 ?



On 23 May 2006, at 17:55, Matthias Wessendorf wrote:

Phil-

I used it this way:

JSP:
...


 
  
   
   
 

...



...


Backing Bean (constructor or init() in case of Shale's ViewControler)
(btw. AnalysisFolder is an business object of me...)

-

tree = new TreeNodeBase("root","Analyses",false);

for (Iterator iter = listOfAnalysisFolders.iterator(); iter.hasNext 
();) {

 AnalysisFolder element = (AnalysisFolder) iter.next();
 tree.getChildren().add(
new TreeNodeChecked("analysisFolder", element.getName(),
element.getId(), false, true));
 selectedIds.add(new SelectItem(element.getId()));
}


-


action method:

-

public String processNodes(){
 List childs = tree.getChildren();
 for (Iterator iter = childs.iterator(); iter.hasNext();) {
   TreeNodeChecked element = (TreeNodeChecked) iter.next();
   if(element.isChecked()==true) {
 //do...
   }
 }
 ...
}
-

HTH,
Matthias
On 5/23/06, Philippe Lamote <[EMAIL PROTECTED]> wrote:

Hi,

I'm sory for this question, but there's not too much doc about this
on site, so... here we go:

I want to make a tree2 with checkboxes that I only collect once
together, and I could use some advice:

The examples I've seen, have the commandlink at every node, by
consequence fire off the second one gets clicked.

What I want, is:
- a CLIENT side tree2 (for speed)
- with checkboxes on every leaf element
- multiple leafs can be checked simultaneously ("simultaneously"
meaning before a new request fires off)
- under the tree a cmd button to ONLY THEN fire off an action.

The action should then perform an opeation on all the checked leafs.

I guess thsi is possible, but how to do this best?
If possible, I'd like a solution without javascript to collect the
checked nodes, yet if no other way exits, that's fine too.
With js I thought of smth like: (if it works, "addToRequest(#
{node.identifier});" ... should add the node ID to the request. So
all checked nodes would be sent with the request wen the cmd button
under the tree gets clicked.)

  


onclick="addToRequest(#

{node.identifier});" />
 
 styleClass="#

{t.nodeSelected ? 'treeSetSelected':'treeSetUnselected'}"/>




If possible, I would like to get rid of "addToRequest(#
{node.identifier});", of even better of the entire
"h:selectBooleanCheckbox" and use checkedNode (smth Matthias
Wessendorf provided us with for convenience - thank you Matthias! :-)

Yet in that case, how to collect all the ckecked nodes at the server
side?
Is it necessary to walk over all the nodes and perform a isChecked
check? (if so, does someone here has some tested code for this? Would
be a ice addition to http://wiki.apache.org/myfaces/Tree2 as well.
I think this would also be a fine candidate for a build-in method, to
ship with the ckeckNode tree. As with a checkednode tree, you have
the great option to batch process all checked nodes at once,
serverside, compared to all the servertrips per checked node you'd
have without a checkednode tree. (this is what I love most about it,
it's a great idea, yet now I guess every dev has to program the same
method over and over again for tree-traversal)

Thanks in advance,
Phil






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



Re: Tree2 & CheckedNode question

2006-05-23 Thread Andrew Robinson

Here is another way:


 
   
 
   
   ...

Java:
 public void treeCheckChanged(ValueChangeEvent evt)
 {
   UIComponent comp = evt.getComponent();
   String nodeId = (String)comp.getAttributes().get("nodeId");

   Boolean oldValue = (Boolean)evt.getOldValue();
   Boolean newValue = (Boolean)evt.getOldValue();
   ...
 }

The one thing weird about this is that it occurs during the process
validation and not the update model phase (I always wonder why the
value change isn't in the update model phase), so it isn't fully
acceptable to be changing the bean's properties at this time, but what
other possibility is there?

-Andrew


On 5/23/06, Michael Heinen <[EMAIL PROTECTED]> wrote:

Here is some more code of my jsp for illustration:


  ...


   






...


-Original Message-
From: Michael Heinen [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 23. Mai 2006 17:50
To: MyFaces Discussion
Subject: RE: Tree2 & CheckedNode question

Phil,

I think the performance could depends on your specific scenario (size of
tree, number of changed nodes and their relation). My model contains
very large server side trees so checking the whole tree was not an
alternative for me.

You need the  in order to display the checkbox
for the corresponding node. The valueChangeListener must be defined for
this tag. You can't define it elsewhere because it should be fired when
the checkbox status has been changed.

The sender of the valueChangeEvent is not a TreeNodeChecked but a
HtmlSelectBooleanCheckbox. HtmlSelectBooleanCheckbox has not
getIdentifier() method. Attribute title of HtmlSelectBooleanCheckbox
contains the identifier of the node in my sample.  See below:
title="#{node.identifier}"

I also don't know .

Michael

-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 23. Mai 2006 15:32
To: MyFaces Discussion
Subject: Re: Tree2 & CheckedNode question

Ah, so I did miss smth! (my bad)
This is very interesting.
I'll try that out.

Do you think this is a more efficient (meaning faster) approach than
sending the whole tree back, and do a tree traversal in one action
method to add selected nodes to an List? (= optimization question;
one big action traversal method vs. serveral smaller action listener
methods) Have you experimented with this?

Last question: if I 'd use Matthias's CheckedNode Tree, can I then
leave the  out of the tree or should I leave
it in? (as having to leave it out raises the problem of where to put
the valueChangeListener; neither facet not panelGrid accept this
attribute)

So, for TreeNodeChecked: (btw I also noticed you used getTitle()
instead of getIdentifier(), why is that?)
--> would this be the proper way for handling:

public void nodeChanged (ValueChangeEvent ve) {
TreeNodeChecked sender = (TreeNodeChecked)ve.getComponent();
if (sender.isChecked()) {
//add selected node
this.selectedNodes.add(sender.getIdentifier());
}
else{
//remove not selected node
this.selectedNodes.remove(sender.getIdentifier());
}
}


Btw does anyone know what the "" element
stands for? (passed by with autocompletion, yet no doc is available &
I'd also expect an actionListener to go with a "Listener" yet this is
not the case)

Bye ( & thx Michael!)
Phil


On 23 May 2006, at 14:16, Michael Heinen wrote:

There is only one request.
The valueChangeListener listener is called after you submitted your
page. You can select/deselect as many nodes as you want in a client side
tree without generating a server request. The valueChangeListener is
called after you submitted the form. It is then called for each changed
node.

-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 23. Mai 2006 13:18
To: MyFaces Discussion
Subject: Re: Tree2 & CheckedNode question

This seems worse then a resquest per checked node: now you have a
server round trip per time a user "clicks" on +/-
The best solution is (as in my question) one where there is ONLY one
request, at the end.
Then only the nodes the user selected in the end (after his doubts -
think proces of checking/unchecking) are taking into account.
(or am I missing smth?)
Phil


On 23 May 2006, at 12:39, Michael Heinen wrote:

It is very easy to collect the checked nodes on the server.
You could use a valueChangeListener.



Then you could add all selected nodes into a Set/List and remove all
deselected nodes from it.

public void nodeChanged (ValueChangeEvent ve) {
HtmlSelectBooleanCheckbox sender = (HtmlSelectBooleanCheckbox)
ve.getComponent();
if (sender.isSelected()) {
//add selected node
this.selectedNodes.add(sender.getTitle());
}
else{
//remove not selected node
this.selectedNodes.remove(sender.getTitle());
}
}

-Original Message-
From: Philippe 

t:panelNavigation2 separatorClass example?

2006-05-23 Thread Jeff Bischoff
Does anyone have a working example of t:panelNavigation2 being able to 
meaningfully use the separatorClass attribute?


I can see in the generated code where all the other 'Class' attributes 
get assigned to, but separatorClass doesn't seem to have any effect.


Alternatively, can someone give me an easy way to get some white space 
between my menu buttons?


Regards,

Jeff Bischoff
Kenneth L Kurz & Assoc, Inc.




Re: (resolved) Forcing to update

2006-05-23 Thread Jeff Bischoff
Found a workaround for this issue (and a fairly obvious one at that!) 
The answer was passing value-binding expressions (pointing to labels) 
instead of the actual labels, when building the collection of 
NavigationMenuItems.


This is the only way that I could get a usage such as


  


to reliably update its labels on each request. This deviates from the 
behaviour of similar collection-referencing tags, such as dataTable and 
f:selectItems, which grab the collection anew every time.


Cheers,

Jeff Bischoff
Kenneth L Kurz & Assoc, Inc.

Jeff Bischoff wrote:

Problem:

Menu labels are not updated on t:panelNavigation2 when the action 
returns null, and the same page is redisplayed. If we navigate to 
another page and then navigate back, the labels are updated correctly. 
How can we get t:panelNavigation2 to update itself without navigating to 
a different page?


I thought perhaps binding it to a UIComponent might allow me to 
programmatically force such an update, but I'm not sure what methods 
might accomplish that.


Background:

We have recently added t:panelNavigation2 as a menu to our website. At 
the end of the label for each menu item is a number representing the 
number of records in that category. When a new number is input and the 
load button is clicked, these values should change, but they do not. All 
of the other components on the page (h:inputTexts, h:outputTexts, 
t:inputCalendar, etc) do update their displayed values correctly. We are 
only having a problem with t:panelNavigation2 in particular.


Jeff Bischoff
Kenneth L Kurz & Associates, Inc.









Re: Who uses Single Sign On with JSF?

2006-05-23 Thread Rogerio Pereira
Can you share the code?2006/5/23, Mike Kienenberger <[EMAIL PROTECTED]>:
On 5/23/06, Rogerio Pereira <[EMAIL PROTECTED]> wrote:> But jcifs only works with samba related stuff?jcifs works with Windows domain controllers.   Don't know if that's
what you're after, but the general principle should still be the same.1) have a filter that creates a UserPrinciple via whatever SSO you need to use.2) have a filter that converts the UserPrinciple into a POJO
representation of your user which is stored in the request or sessionmap.3) have a course-grain filter that restricts access to yourapplication based on the POJO.4) have a security bean that provides fine-grain access to your
application based on the POJO.Obviously, this works best in my situation due to how things are donehere and your mileage may vary.-- Yours truly (Atenciosamente),
Rogério


Re: MyFaces log permission?

2006-05-23 Thread Manfred Geiler

On 5/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi,

We just finished our Account Management web application with MyFaces. MyFaces 
is great. Excellent job guys.


Thanks.



The application just cost us 3 weeks. JSF is much better than Struts.

You can take a look at http://www.gotoservers.com, click "Account" link.

Here is my question, can I put MyFaces logo on my Account index page?


You mean the logo with a link to the Myfaces homepage?
Yes, why not. Feel free.


Regards,
Manfred


MyFaces log permission?

2006-05-23 Thread admin
Hi,

We just finished our Account Management web application with MyFaces. MyFaces 
is great. Excellent job guys. 

The application just cost us 3 weeks. JSF is much better than Struts.

You can take a look at http://www.gotoservers.com, click "Account" link.

Here is my question, can I put MyFaces logo on my Account index page?

Thanks.

GoToServers Team.


Re: Tobago and duplicate id's

2006-05-23 Thread Bernd Bohmann

Hello Oliver,

there is a known problem with tc:menuRadio and tc:menuCheck.

Please use in 1.0.8-SNAPSHOT:

for menuRadio:


  
 
   
 
  


for menuCheckbox:


  

  



A tx alternative tag isn't finished for facelets.

You can download 1.0.8-SNAPSHOT at:

http://people.apache.org/builds/myfaces/nightly/

If you are not using tc:menuRadio or tc:menuCheckbox please send your page.


Regards

Bernd

Oliver Kuhl schrieb:

Hi,

I'm new to MyFaces and Tobago. In my first test application I created
a menubar, toolbar and a sheet filled with data from a database. The
first request always works fine an the page gets rendered. A simple
reload leads into an error:

java.lang.IllegalStateException: Client-id : _id6 is duplicated in the
faces tree.

This always happens every second request - one works, the next one
does not. I read about several problems with id's regarding plain JSF.
Should this happen with Facelets and Tobago, too? Is there any other
option than giving each component an id manually?

Regards,
   Ollie.



--
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333


Re: MethodBinding

2006-05-23 Thread Matthias Wessendorf

You are "just" calling a method.
JSF doesn't now about your navigation rules at this time.
Use the NavigationHandler for this kind of use-case

facesContext.getApplication().getNavigationHandler().handleNavigation(
facesContext, null, outcome);


"outcome" is the string returned by #{bean2.callMe}


-Matthias

On 5/23/06, Murat Hazer <[EMAIL PROTECTED]> wrote:

Hi,

I have a s:subform and selectOneMenu in this form, onchange i submit the
form and in the valueChangeListener method of the backing bean i am calling
another backing beans method using methodBinding and i want this method to
navigate another page ( bean2.callMe excuted but it doesn't navigates or
updates the view), and #{sessionScope.code} value is not updated with the
selected items value, here is the code;




  


  




 public class Change{

public void change(ValueChangeEvent valueChangeEvent) {
facesContext.getApplication().createMethodBinding(
"#{bean2.callMe}", new Class[] {}).invoke(
facesContext, new Object[] {});
}

}


regards

--
Murat HAZER





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


RE: Tree2 & CheckedNode question

2006-05-23 Thread Michael Heinen
Here is some more code of my jsp for illustration:


  ...   


   






...
  

-Original Message-
From: Michael Heinen [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 23. Mai 2006 17:50
To: MyFaces Discussion
Subject: RE: Tree2 & CheckedNode question

Phil,

I think the performance could depends on your specific scenario (size of
tree, number of changed nodes and their relation). My model contains
very large server side trees so checking the whole tree was not an
alternative for me.

You need the  in order to display the checkbox
for the corresponding node. The valueChangeListener must be defined for
this tag. You can't define it elsewhere because it should be fired when
the checkbox status has been changed.

The sender of the valueChangeEvent is not a TreeNodeChecked but a
HtmlSelectBooleanCheckbox. HtmlSelectBooleanCheckbox has not
getIdentifier() method. Attribute title of HtmlSelectBooleanCheckbox
contains the identifier of the node in my sample.  See below: 
title="#{node.identifier}"

I also don't know .

Michael

-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 23. Mai 2006 15:32
To: MyFaces Discussion
Subject: Re: Tree2 & CheckedNode question

Ah, so I did miss smth! (my bad)
This is very interesting.
I'll try that out.

Do you think this is a more efficient (meaning faster) approach than  
sending the whole tree back, and do a tree traversal in one action  
method to add selected nodes to an List? (= optimization question;  
one big action traversal method vs. serveral smaller action listener  
methods) Have you experimented with this?

Last question: if I 'd use Matthias's CheckedNode Tree, can I then  
leave the  out of the tree or should I leave  
it in? (as having to leave it out raises the problem of where to put  
the valueChangeListener; neither facet not panelGrid accept this  
attribute)

So, for TreeNodeChecked: (btw I also noticed you used getTitle()  
instead of getIdentifier(), why is that?)
--> would this be the proper way for handling:

public void nodeChanged (ValueChangeEvent ve) {
TreeNodeChecked sender = (TreeNodeChecked)ve.getComponent();
if (sender.isChecked()) {
//add selected node
this.selectedNodes.add(sender.getIdentifier());
}
else{
//remove not selected node
this.selectedNodes.remove(sender.getIdentifier());
}
}


Btw does anyone know what the "" element  
stands for? (passed by with autocompletion, yet no doc is available &  
I'd also expect an actionListener to go with a "Listener" yet this is  
not the case)

Bye ( & thx Michael!)
Phil


On 23 May 2006, at 14:16, Michael Heinen wrote:

There is only one request.
The valueChangeListener listener is called after you submitted your
page. You can select/deselect as many nodes as you want in a client side
tree without generating a server request. The valueChangeListener is
called after you submitted the form. It is then called for each changed
node.

-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 23. Mai 2006 13:18
To: MyFaces Discussion
Subject: Re: Tree2 & CheckedNode question

This seems worse then a resquest per checked node: now you have a
server round trip per time a user "clicks" on +/-
The best solution is (as in my question) one where there is ONLY one
request, at the end.
Then only the nodes the user selected in the end (after his doubts -
think proces of checking/unchecking) are taking into account.
(or am I missing smth?)
Phil


On 23 May 2006, at 12:39, Michael Heinen wrote:

It is very easy to collect the checked nodes on the server.
You could use a valueChangeListener.



Then you could add all selected nodes into a Set/List and remove all
deselected nodes from it.

public void nodeChanged (ValueChangeEvent ve) {
HtmlSelectBooleanCheckbox sender = (HtmlSelectBooleanCheckbox)
ve.getComponent();
if (sender.isSelected()) {
//add selected node
this.selectedNodes.add(sender.getTitle());
}
else{
//remove not selected node
this.selectedNodes.remove(sender.getTitle());
}
}

-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 23. Mai 2006 12:12
To: MyFaces Discussion
Subject: Tree2 & CheckedNode question

Hi,

I'm sory for this question, but there's not too much doc about this
on site, so... here we go:

I want to make a tree2 with checkboxes that I only collect once
together, and I could use some advice:

The examples I've seen, have the commandlink at every node, by
consequence fire off the second one gets clicked.

What I want, is:
- a CLIENT side tree2 (for speed)
- with checkboxes on every leaf element
- multiple leafs can be checked simultaneously ("simultaneously"
meaning before a n

Re: Tree2 & CheckedNode question

2006-05-23 Thread Matthias Wessendorf

Phil-

I used it this way:

JSP:
...


 
  
   
   
 

...



...


Backing Bean (constructor or init() in case of Shale's ViewControler)
(btw. AnalysisFolder is an business object of me...)

-

tree = new TreeNodeBase("root","Analyses",false);

for (Iterator iter = listOfAnalysisFolders.iterator(); iter.hasNext();) {
 AnalysisFolder element = (AnalysisFolder) iter.next();
 tree.getChildren().add(
new TreeNodeChecked("analysisFolder", element.getName(),
element.getId(), false, true));
 selectedIds.add(new SelectItem(element.getId()));
}


-


action method:

-

public String processNodes(){
 List childs = tree.getChildren();
 for (Iterator iter = childs.iterator(); iter.hasNext();) {
   TreeNodeChecked element = (TreeNodeChecked) iter.next();
   if(element.isChecked()==true) {
 //do...
   }
 }
 ...
}
-

HTH,
Matthias
On 5/23/06, Philippe Lamote <[EMAIL PROTECTED]> wrote:

Hi,

I'm sory for this question, but there's not too much doc about this
on site, so... here we go:

I want to make a tree2 with checkboxes that I only collect once
together, and I could use some advice:

The examples I've seen, have the commandlink at every node, by
consequence fire off the second one gets clicked.

What I want, is:
- a CLIENT side tree2 (for speed)
- with checkboxes on every leaf element
- multiple leafs can be checked simultaneously ("simultaneously"
meaning before a new request fires off)
- under the tree a cmd button to ONLY THEN fire off an action.

The action should then perform an opeation on all the checked leafs.

I guess thsi is possible, but how to do this best?
If possible, I'd like a solution without javascript to collect the
checked nodes, yet if no other way exits, that's fine too.
With js I thought of smth like: (if it works, "addToRequest(#
{node.identifier});" ... should add the node ID to the request. So
all checked nodes would be sent with the request wen the cmd button
under the tree gets clicked.)

  



 
 




If possible, I would like to get rid of "addToRequest(#
{node.identifier});", of even better of the entire
"h:selectBooleanCheckbox" and use checkedNode (smth Matthias
Wessendorf provided us with for convenience - thank you Matthias! :-)

Yet in that case, how to collect all the ckecked nodes at the server
side?
Is it necessary to walk over all the nodes and perform a isChecked
check? (if so, does someone here has some tested code for this? Would
be a ice addition to http://wiki.apache.org/myfaces/Tree2 as well.
I think this would also be a fine candidate for a build-in method, to
ship with the ckeckNode tree. As with a checkednode tree, you have
the great option to batch process all checked nodes at once,
serverside, compared to all the servertrips per checked node you'd
have without a checkednode tree. (this is what I love most about it,
it's a great idea, yet now I guess every dev has to program the same
method over and over again for tree-traversal)

Thanks in advance,
Phil






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


RE: Tree2 & CheckedNode question

2006-05-23 Thread Michael Heinen
Phil,

I think the performance could depends on your specific scenario (size of
tree, number of changed nodes and their relation). My model contains
very large server side trees so checking the whole tree was not an
alternative for me.

You need the  in order to display the checkbox
for the corresponding node. The valueChangeListener must be defined for
this tag. You can't define it elsewhere because it should be fired when
the checkbox status has been changed.

The sender of the valueChangeEvent is not a TreeNodeChecked but a
HtmlSelectBooleanCheckbox. HtmlSelectBooleanCheckbox has not
getIdentifier() method. Attribute title of HtmlSelectBooleanCheckbox
contains the identifier of the node in my sample.  See below: 
title="#{node.identifier}"

I also don't know .

Michael

-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 23. Mai 2006 15:32
To: MyFaces Discussion
Subject: Re: Tree2 & CheckedNode question

Ah, so I did miss smth! (my bad)
This is very interesting.
I'll try that out.

Do you think this is a more efficient (meaning faster) approach than  
sending the whole tree back, and do a tree traversal in one action  
method to add selected nodes to an List? (= optimization question;  
one big action traversal method vs. serveral smaller action listener  
methods) Have you experimented with this?

Last question: if I 'd use Matthias's CheckedNode Tree, can I then  
leave the  out of the tree or should I leave  
it in? (as having to leave it out raises the problem of where to put  
the valueChangeListener; neither facet not panelGrid accept this  
attribute)

So, for TreeNodeChecked: (btw I also noticed you used getTitle()  
instead of getIdentifier(), why is that?)
--> would this be the proper way for handling:

public void nodeChanged (ValueChangeEvent ve) {
TreeNodeChecked sender = (TreeNodeChecked)ve.getComponent();
if (sender.isChecked()) {
//add selected node
this.selectedNodes.add(sender.getIdentifier());
}
else{
//remove not selected node
this.selectedNodes.remove(sender.getIdentifier());
}
}


Btw does anyone know what the "" element  
stands for? (passed by with autocompletion, yet no doc is available &  
I'd also expect an actionListener to go with a "Listener" yet this is  
not the case)

Bye ( & thx Michael!)
Phil


On 23 May 2006, at 14:16, Michael Heinen wrote:

There is only one request.
The valueChangeListener listener is called after you submitted your
page. You can select/deselect as many nodes as you want in a client side
tree without generating a server request. The valueChangeListener is
called after you submitted the form. It is then called for each changed
node.

-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 23. Mai 2006 13:18
To: MyFaces Discussion
Subject: Re: Tree2 & CheckedNode question

This seems worse then a resquest per checked node: now you have a
server round trip per time a user "clicks" on +/-
The best solution is (as in my question) one where there is ONLY one
request, at the end.
Then only the nodes the user selected in the end (after his doubts -
think proces of checking/unchecking) are taking into account.
(or am I missing smth?)
Phil


On 23 May 2006, at 12:39, Michael Heinen wrote:

It is very easy to collect the checked nodes on the server.
You could use a valueChangeListener.



Then you could add all selected nodes into a Set/List and remove all
deselected nodes from it.

public void nodeChanged (ValueChangeEvent ve) {
HtmlSelectBooleanCheckbox sender = (HtmlSelectBooleanCheckbox)
ve.getComponent();
if (sender.isSelected()) {
//add selected node
this.selectedNodes.add(sender.getTitle());
}
else{
//remove not selected node
this.selectedNodes.remove(sender.getTitle());
}
}

-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 23. Mai 2006 12:12
To: MyFaces Discussion
Subject: Tree2 & CheckedNode question

Hi,

I'm sory for this question, but there's not too much doc about this
on site, so... here we go:

I want to make a tree2 with checkboxes that I only collect once
together, and I could use some advice:

The examples I've seen, have the commandlink at every node, by
consequence fire off the second one gets clicked.

What I want, is:
- a CLIENT side tree2 (for speed)
- with checkboxes on every leaf element
- multiple leafs can be checked simultaneously ("simultaneously"
meaning before a new request fires off)
- under the tree a cmd button to ONLY THEN fire off an action.

The action should then perform an opeation on all the checked leafs.

I guess thsi is possible, but how to do this best?
If possible, I'd like a solution without javascript to collect the
checked nodes, yet if no other way exits, that's fine too.
With 

Re: Tree2 & CheckedNode question

2006-05-23 Thread Chris Hane
You might also try something like the jenia components.  I use their 
multipleSelector component with a datatable.  However, I imagine it 
could work with a tree.


Philippe Lamote wrote:

Hi,

I'm sory for this question, but there's not too much doc about this on 
site, so... here we go:


I want to make a tree2 with checkboxes that I only collect once 
together, and I could use some advice:


The examples I've seen, have the commandlink at every node, by 
consequence fire off the second one gets clicked.


What I want, is:
- a CLIENT side tree2 (for speed)
- with checkboxes on every leaf element
- multiple leafs can be checked simultaneously ("simultaneously" 
meaning before a new request fires off)

- under the tree a cmd button to ONLY THEN fire off an action.

The action should then perform an opeation on all the checked leafs.

I guess thsi is possible, but how to do this best?
If possible, I'd like a solution without javascript to collect the 
checked nodes, yet if no other way exits, that's fine too.
With js I thought of smth like: (if it works, 
"addToRequest(#{node.identifier});" ... should add the node ID to the 
request. So all checked nodes would be sent with the request wen the 
cmd button under the tree gets clicked.)


 varNodeToggler="t">



onclick="addToRequest(#{node.identifier});" />
 border="0"/>
  styleClass="#{t.nodeSelected ? 'treeSetSelected':'treeSetUnselected'}"/>



   

If possible, I would like to get rid of 
"addToRequest(#{node.identifier});", of even better of the entire 
"h:selectBooleanCheckbox" and use checkedNode (smth Matthias 
Wessendorf provided us with for convenience - thank you Matthias! :-)


Yet in that case, how to collect all the ckecked nodes at the server 
side?
Is it necessary to walk over all the nodes and perform a isChecked 
check? (if so, does someone here has some tested code for this? Would 
be a ice addition to http://wiki.apache.org/myfaces/Tree2 as well.
I think this would also be a fine candidate for a build-in method, to 
ship with the ckeckNode tree. As with a checkednode tree, you have the 
great option to batch process all checked nodes at once, serverside, 
compared to all the servertrips per checked node you'd have without a 
checkednode tree. (this is what I love most about it, it's a great 
idea, yet now I guess every dev has to program the same method over 
and over again for tree-traversal)


Thanks in advance,
Phil




--No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006





--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006



Re: tree2 expand/collapse

2006-05-23 Thread Chris Hane
This isn't going to help too much; but I started to run into the same 
things when I was using tree2 and client side expand/collapse.


What I tracked it down to was the expand/collapse state is stored in a 
cookie that is relevant for a the tree2 component on a specific screen. 
For me that meant when I had to the same screen open in two windows 
(different records though), they "shared" the expand/collapse state. 
This causes weird looking behavior (e.g., expand three node in one 
screen, go to the second screen and expand a node and three are expanded 
(the same three from the first screen)).


At the time I wasn't setup to explore the tomahawk code so I found a 
work around for my specific case (I expand all nodes all the time and 
don't let the user collapse). I opened a JIRA on this issue - the 
archives have the specific #.


Having said that, I'm not an expert with tomahawk - actually just 
starting so I might be doing something wrong...


Chris

Christopher J. Bowerman wrote:


Hi,

I’m using a tree2 component. My problem seems to have to do with tree 
state. The tree works fine the first time I render it, but I have a 
“home” button that starts the user input over again and builds a new 
tree. When the new tree is rendered the nodes that were expanded in 
the earlier tree are expanded in this one as well. I’d like the tree 
to be fully collapsed whenever I’ve built a new tree. Can anybody 
actually tell me how I can do this? I’ve seen other mention of it on 
previous posts, but they were almost a year ago and no mention how to 
actually go about it. Any help would be greatly appreciated.


Thanks.

==

Christopher J. Bowerman

Internet Applications Developer

SAIC-Frederick

phone: 301.846.5275

email: [EMAIL PROTECTED] 





No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006
  



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006



Re: Component like panelGrid with ul and li

2006-05-23 Thread [EMAIL PROTECTED]

This component looks like it takes in a list of items.  I'm just looking to
wrap form elements like  allows - so JSF slurps it up and
processes it, instead of processing each component as it loads in a JSP. 
I'd like to go from this:

































To this:

































To something like this:



 










 



















Of course, if it's possible to simply group the label, error and input in
some sort of group w/in the , I'm fine with that.  It's unfortunate that
JSF 1.1 with JSP is so broken. ;-)

Thanks,

Matt
--
View this message in context: 
http://www.nabble.com/Component+like+panelGrid+with+ul+and+li-t1668669.html#a4525075
Sent from the MyFaces - Users forum at Nabble.com.



Re: Tree state

2006-05-23 Thread Andrew Robinson

...
private TreeModelBase treeModel = new TreeModelBase();
...
public void clearTreeState(ActionEvent evt)
{
  treeModel.setTreeState(new TreeStateBase());
}

-Andrew

On 5/23/06, Christopher J. Bowerman <[EMAIL PROTECTED]> wrote:





Have not heard a response so I thought I'd try again.



I'm using the tree2 component and have an "home" option where the user
starts the application from the beginning which builds a new tree.  When the
new tree is built it seems to remember the state of the old tree leaving
which ever nodes were expanded open in the new tree as well.  I need the new
tree to always start in a collapsed state.  Does anybody have suggestions on
how this works?



Thanks.



==

Christopher J. Bowerman

Internet Applications Developer

SAIC-Frederick

phone: 301.846.5275

email: [EMAIL PROTECTED]








JSCookMenu doesn't work with latest tomahawk and myfaces

2006-05-23 Thread Anthony Hong

I use myfaces 1.1.3 and tomahawk 1.1.2 and facelt 1.1.4

I use jsCookMenu in dynamic way.
My code NavigationMenuItem("lable", "action").
I put method binding express in action.

Menu can be build successfully. But action doesn't work. click it will
open a new window and do nothing. And I couldn't provide a link
directly.

Doesn't new version of tomahawk will solve this problem? If I have to
use it know, what should I do?

--

Anthony Hong


jscookmenu nesting h:hiddenInput

2006-05-23 Thread Ken Clark

We are trying to use jscookmenu to add some navigation to our web app...

However, we need to pass some data via an inputHidden tag (for a
request-scope managed bean) so that after the post, the data will be
available.

Our tests show that the h:inputHidden tag is not generated within the
jscookmenu's form.  

Is there any way to do this?

Thanks,
ken clark
--
View this message in context: 
http://www.nabble.com/jscookmenu+nesting+h%3AhiddenInput-t1669456.html#a4524641
Sent from the MyFaces - Users forum at Nabble.com.



Re: Can one JSF page with three forms which work separately?

2006-05-23 Thread Andrew Robinson

I have it working fine and with server side zones, but I don't
directly use AAUtils. I created ajaxCommandLink and ajaxCommandButton
controls for my use, that take an ajaxZone attribute on the
components. On the decode of these items, I queue a custom event, that
simply adds the zones to the response. This way the view still
dictates the zones, but the code runs on the server, and there is no
messy javascript to worry about.

I also use 1.1.0.6 because I couldn't get 1.2 to work.

-Andrew

On 5/23/06, Murat Hazer <[EMAIL PROTECTED]> wrote:

I talked with someone who successfully uses ajaxanaywhere with latest
myfaces, only difference between me and him is he defines the zones to be
refreshed on the server side, i define them on the client side. I don't want
to put ajaxanywhere related ( AAutils.()) java code to my backing beans.
May be you can try server side code, it may work, then you can inform as it
worked or not.


regards...

On 5/23/06, Anthony Hong <[EMAIL PROTECTED]> wrote:
> :- (
> I have the same problem. I tired it yesterday, It doesn't work for me.
>
> On 5/23/06, Murat Hazer <[EMAIL PROTECTED]> wrote:
> > if they don't fillfull your request you can try ajaxanywhere [1]. (but i
> > couldn't make it work with latest myfaces and tomahawk).
> >
> > [1] http://ajaxanywhere.sourceforge.net/
> >
> > regards...
> >
> >
> > On 5/23/06, Anthony Hong < [EMAIL PROTECTED]> wrote:
> > > I also need page navigation in each div.
> > > Example:
> > > In div address information, Click Add button will display add form
> > > page. But others two divs are not changed
> > >
> > > Can sandbox supports this? I doesn't see Myfaces demo. It describes in
> > > multiplue form saving partial. I guess my requirement can not be
> > > fullfilled
> > >
> > >
> > > On 5/23/06, Murat Hazer <[EMAIL PROTECTED]> wrote:
> > > > Sandbox has two components which may help you, s:commandButtonAjax
and
> > > > s:subForm.
> > > >
> > > > regards..
> > > >
> > > >
> > > > On 5/22/06, Anthony Hong < [EMAIL PROTECTED] > wrote:
> > > > > I have a web page with three form in each div, say:
> > > > > div 1: base information
> > > > > div 2: address information
> > > > > div 3: phone information.
> > > > >
> > > > > Each of them is a list table with add, edit, delete function.
> > > > > Can I operator each div in one page like I processing each jsf
page in
> > a
> > > > div?
> > > > > I think this should with ajax supports, right?
> > > > > If it can be achieved, which ajax framework supports well with
myfaces
> > > > > to achieves my goad.
> > > > >
> > > > > Thanks
> > > > >
> > > > > --
> > > > >
> > > > > Anthony Hong
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Murat HAZER
> > > > Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
> > > > Tel - Phone: +90 222 335 05 80 - 1395
> > > > Cep Tel - Mobile Phone: +90 532 472 00 63
> > > > Blog URL: http://www.projedunyasi.org
> > > > Yahoo Group:
> > > > http://groups.yahoo.com/group/malatyafenlisesi/
> > >
> > >
> > > --
> > >
> > > Anthony Hong
> > >
> >
> >
> >
> > --
> >
> > Murat HAZER
> > Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
> > Tel - Phone: +90 222 335 05 80 - 1395
> > Cep Tel - Mobile Phone: +90 532 472 00 63
> > Blog URL: http://www.projedunyasi.org
> > Yahoo Group:
> > http://groups.yahoo.com/group/malatyafenlisesi/
>
>
> --
>
> Anthony Hong
>



--

Murat HAZER
Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
 Tel - Phone: +90 222 335 05 80 - 1395
Cep Tel - Mobile Phone: +90 532 472 00 63
Blog URL: http://www.projedunyasi.org
Yahoo Group:
http://groups.yahoo.com/group/malatyafenlisesi/


Re: Exception

2006-05-23 Thread Mike Kienenberger

Yes, it means you have both the JSF RI 1.1 and Myfaces JSF 1.1 jar
files in your classpath.   Remove one of them.

   at com.sun.faces.application.ViewHandlerImpl
   at org.apache.myfaces.lifecycle.LifecycleImpl



On 5/22/06, Fu, Lieyong <[EMAIL PROTECTED]> wrote:



Can anybody please tell what is this exception about?
Thanks,
Lieyong

java.lang.NullPointerException
at
com.sun.faces.renderkit.html_basic.CommandLinkRenderer.getHiddenFieldName(CommandLinkRenderer.java:136)
at
com.sun.faces.renderkit.html_basic.CommandLinkRenderer.encodeEnd(CommandLinkRenderer.java:320)
at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:712)
at
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
at
com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
at
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:693)
at
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
at
com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
at
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:693)
at
org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:444)
at
org.apache.myfaces.renderkit.RendererUtils.renderChildren(RendererUtils.java:427)
at
org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:448)
at
org.apache.myfaces.custom.layout.HtmlLayoutRenderer.renderTableCell(HtmlLayoutRenderer.java:259)
at
org.apache.myfaces.custom.layout.HtmlLayoutRenderer.renderClassic(HtmlLayoutRenderer.java:101)
at
org.apache.myfaces.custom.layout.HtmlLayoutRenderer.encodeEnd(HtmlLayoutRenderer.java:66)
at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:712)
at
javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:616)
at
javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:539)
at
org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:55)
at
jsp_servlet._jsp.__home_orders._jspService(home_orders.jsp:65)
at
weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:328)
at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
>



Re: Who uses Single Sign On with JSF?

2006-05-23 Thread Mike Kienenberger

On 5/23/06, Rogerio Pereira <[EMAIL PROTECTED]> wrote:

But jcifs only works with samba related stuff?


jcifs works with Windows domain controllers.   Don't know if that's
what you're after, but the general principle should still be the same.

1) have a filter that creates a UserPrinciple via whatever SSO you need to use.
2) have a filter that converts the UserPrinciple into a POJO
representation of your user which is stored in the request or session
map.
3) have a course-grain filter that restricts access to your
application based on the POJO.
4) have a security bean that provides fine-grain access to your
application based on the POJO.

Obviously, this works best in my situation due to how things are done
here and your mileage may vary.


Tomahawk 1.1.2 is not in Maven repository

2006-05-23 Thread Paul Spencer

Tomahawk 1.1.2 is not in the Maven repository
  http://myfaces.zones.apache.org/dist/maven-repository/

Am I looking in the wrong place?

Paul Spencer


Re: Who uses Single Sign On with JSF?

2006-05-23 Thread Mike Kienenberger

On 5/23/06, Rogerio Pereira <[EMAIL PROTECTED]> wrote:

And u uses this with commandButtons like ???

Also, do you control the access to specific apps? I mean, user x can't
access the app y???


For coarse-grain security, I have another filter than runs after the
previous two that disallows access to non-authorized application
users.

I use the security bean for fine-grain access inside the application.

We don't use container-based roles/security, though, but I'd imagine
it would work much the same way.


Tomahawk tree table component integration problem with Sun JSF RI

2006-05-23 Thread [EMAIL PROTECTED]

Hi,

I tried to integrate tomahawk tree table component with Sun JSF RI.
I simply imported the example application's code into my application. The
tree renders properly but the javascript function "clear__5Fid0();" code is
not being rendered. Because of it I can't expand nodes of tree as this is
the which gets called first. Has anybody faced similar problem. Any
hints/suggestions from myfaces guys ?


--
View this message in context: 
http://www.nabble.com/Tomahawk+tree+table+component+integration+problem+with+Sun+JSF+RI-t1669186.html#a4523740
Sent from the MyFaces - Users forum at Nabble.com.



Tree state

2006-05-23 Thread Christopher J. Bowerman








Have not heard a response so I thought I’d try again.

 

I’m using the tree2 component and have an “home”
option where the user starts the application from the beginning which builds a
new tree.  When the new tree is built it seems to remember the state of
the old tree leaving which ever nodes were expanded open in the new tree as
well.  I need the new tree to always start in a collapsed state. 
Does anybody have suggestions on how this works?

 

Thanks.

 

==

Christopher J. Bowerman

Internet Applications Developer

SAIC-Frederick

phone: 301.846.5275

email: [EMAIL PROTECTED]

 

 

 








Re: Who uses Single Sign On with JSF?

2006-05-23 Thread Mike Kienenberger

On 5/23/06, Rogerio Pereira <[EMAIL PROTECTED]> wrote:

I would like to know if somebody uses SSO with JSF, i'm trying to find a
good way to do it in my apps.


I use jcifs.

http://jcifs.samba.org/

I use the jcifs.http.NtlmHttpFilter filter to authenticate the request.

I follow it with a custom servlet filter that pulls the username out
of the authenticated UserPrincipal, converts it into a database-backed
User object, and stores it as a request parameter.

At that point, I have a managed bean that provides accessors to
various security method calls based on the login object request
parameter value.

In my case, it's important to do this every request, but you could
work at the session level instead easily enough.


Re: Who uses Single Sign On with JSF?

2006-05-23 Thread Rogerio Pereira
And u uses this with commandButtons like ???Also, do you control the access to specific apps? I mean, user x can't access the app y???If i'm not wrong when you put the user info in UserPrincipal i can use enableOnUserRole and visibleOnUserRole attributes of Tomahawk role aware components, right?
2006/5/23, Jurgen Lust <[EMAIL PROTECTED]>:
We're using a patched version of SecurityFilter, works like a charm...Basically, it does the following:1. check security-config.xml if the requested page requiresauthorisation2. check session if user is logged in
3. if user is not logged in, redirect to the login page of the SSOserver, passing the origin url as parameter4. after successful login, redirect to the custom login servlet of oursecurityfilter, passing a signed token.
5. the login servlet decrypts the token using the public key of the SSOserver. The key contains (among other info) the username of thelogged-in user.6. if desired, check a database or ldap or whatever for the roles of
this user7. add all this information to the UserPrincipalWe packaged all this in a library, and now we have declarative SSOsecurity for all our JSF webapps. Very simple, but effective...Jurgen
Op di, 23-05-2006 te 14:30 +0200, schreef [EMAIL PROTECTED]:> Hi>> There is not any particular functionality in JSF that supports SSO
> explicitly. This is normally handled in the container, or by plugging> in an API such as Acegi or SecurityFilter.>> Hermod> -Original Message-> From: Rogerio Pereira [mailto:
[EMAIL PROTECTED]]> Sent: Tuesday, May 23, 2006 2:25 PM> To: MyFaces Discussion> Subject: Who uses Single Sign On with JSF?
>>> Hi,>> I would like to know if somebody uses SSO with JSF, i'm trying> to find a good way to do it in my apps.>> Thanks for any answer.
>> --> Yours truly (Atenciosamente),>> Rogério>>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *> * * *>
> This email with attachments is solely for the use of the individual or> entity to whom it is addressed. Please also be aware that the DnB NOR> Group> cannot accept any payment orders or other legally binding
> correspondence with> customers as a part of an email.>> This email message has been virus checked by the anti virus programs> used> in the DnB NOR Group.>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * * *-- Yours truly (Atenciosamente),Rogério


RE: Who uses Single Sign On with JSF?

2006-05-23 Thread Jurgen Lust
We're using a patched version of SecurityFilter, works like a charm...
Basically, it does the following:

1. check security-config.xml if the requested page requires
authorisation
2. check session if user is logged in
3. if user is not logged in, redirect to the login page of the SSO
server, passing the origin url as parameter
4. after successful login, redirect to the custom login servlet of our
securityfilter, passing a signed token.
5. the login servlet decrypts the token using the public key of the SSO
server. The key contains (among other info) the username of the
logged-in user.
6. if desired, check a database or ldap or whatever for the roles of
this user
7. add all this information to the UserPrincipal

We packaged all this in a library, and now we have declarative SSO
security for all our JSF webapps. Very simple, but effective...


Jurgen


Op di, 23-05-2006 te 14:30 +0200, schreef [EMAIL PROTECTED]:
> Hi
>  
> There is not any particular functionality in JSF that supports SSO
> explicitly. This is normally handled in the container, or by plugging
> in an API such as Acegi or SecurityFilter.
>  
> Hermod
> -Original Message-
> From: Rogerio Pereira [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 23, 2006 2:25 PM
> To: MyFaces Discussion
> Subject: Who uses Single Sign On with JSF?
> 
> 
> Hi,
> 
> I would like to know if somebody uses SSO with JSF, i'm trying
> to find a good way to do it in my apps.
> 
> Thanks for any answer.
> 
> -- 
> Yours truly (Atenciosamente),
> 
> Rogério 
> 
> 
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * * *
> 
> This email with attachments is solely for the use of the individual or
> entity to whom it is addressed. Please also be aware that the DnB NOR
> Group
> cannot accept any payment orders or other legally binding
> correspondence with
> customers as a part of an email. 
> 
> This email message has been virus checked by the anti virus programs
> used
> in the DnB NOR Group.
> 
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * * *



Re: datatable and selecting a row event

2006-05-23 Thread Jeff Bischoff

Here is how I catch the 'row id' in my application:


  


  
  value="#{data.sequenceNum}" />


  


This is generalized, stripped-down code - obviously I have other columns 
and such. The user will see in the first column a list of numbers. If 
they click a number, the  will update the 
property on the bean with the value they clicked (data.sequenceNum). 
Then the  tells navigation to reload the page. We use 
somewhat odd navigation on our site, so don't get confused by that.


This works because
* I have a sequence number stored in each bean of the collection that 
dataTable is displaying
* I can access that bean in the jsp by using the "var" attribute in 
dataTable


If your data doesn't actually have a row id property, perhaps you should 
add one.


Regards,

Jeff Bischoff
Kenneth L Kurz & Assoc, Inc.

Alex Burton wrote:

Thanks Volker.

How do you catch the 'row id' though?

Cheers,
Alex.

On 5/23/06, *Volker Weber* <[EMAIL PROTECTED] 
> wrote:


Hi Alex,

we do this by using h:commandlink, with parameter, for displaying
the row data.
But you need to hit the text when clicking on a row.

regards,

  Volker

2006/5/23, Alex Burton < [EMAIL PROTECTED]
>:
 > Hi all,
 >
 >  I'm trying to use a datagrid as a way to quickly find and select a
 > particular item from a large list of items. The items have several
 > attributes I wish to display and can number in the 100's, so a
drop down
 > list isn't the right way to go...
 >
 >  So... I have my datagrid displaying beautifully... but am now
stumped on
 > how to throw an even to catch a row selection... I know there are the
 > rowOnClick="javascript" attributes in the datagrid, but how do i
bind that
 > to something useful?
 >
 >  Anyone have any pointers? Ideally I'd like to get the
"forceIdIndexFormula"
 > value (or object it represents in my backing bean).
 >
 >  Thanks in advance,
 >  Alex.
 >
 > --
 > "We should move forwards, not backwards, upwards, not sideways,
and always
 > twirling, twirling towards victory!"




--
"We should move forwards, not backwards, upwards, not sideways, and 
always twirling, twirling towards victory!"





Re: Tree2 & CheckedNode question

2006-05-23 Thread Philippe Lamote

Ah, so I did miss smth! (my bad)
This is very interesting.
I'll try that out.

Do you think this is a more efficient (meaning faster) approach than  
sending the whole tree back, and do a tree traversal in one action  
method to add selected nodes to an List? (= optimization question;  
one big action traversal method vs. serveral smaller action listener  
methods) Have you experimented with this?


Last question: if I 'd use Matthias's CheckedNode Tree, can I then  
leave the  out of the tree or should I leave  
it in? (as having to leave it out raises the problem of where to put  
the valueChangeListener; neither facet not panelGrid accept this  
attribute)


So, for TreeNodeChecked: (btw I also noticed you used getTitle()  
instead of getIdentifier(), why is that?)

--> would this be the proper way for handling:

public void nodeChanged (ValueChangeEvent ve) {
TreeNodeChecked sender = (TreeNodeChecked)ve.getComponent();
if (sender.isChecked()) {
//add selected node
this.selectedNodes.add(sender.getIdentifier());
}
else{
//remove not selected node
this.selectedNodes.remove(sender.getIdentifier());
}
}


Btw does anyone know what the "" element  
stands for? (passed by with autocompletion, yet no doc is available &  
I'd also expect an actionListener to go with a "Listener" yet this is  
not the case)


Bye ( & thx Michael!)
Phil


On 23 May 2006, at 14:16, Michael Heinen wrote:

There is only one request.
The valueChangeListener listener is called after you submitted your
page. You can select/deselect as many nodes as you want in a client side
tree without generating a server request. The valueChangeListener is
called after you submitted the form. It is then called for each changed
node.

-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 23. Mai 2006 13:18
To: MyFaces Discussion
Subject: Re: Tree2 & CheckedNode question

This seems worse then a resquest per checked node: now you have a
server round trip per time a user "clicks" on +/-
The best solution is (as in my question) one where there is ONLY one
request, at the end.
Then only the nodes the user selected in the end (after his doubts -
think proces of checking/unchecking) are taking into account.
(or am I missing smth?)
Phil


On 23 May 2006, at 12:39, Michael Heinen wrote:

It is very easy to collect the checked nodes on the server.
You could use a valueChangeListener.



Then you could add all selected nodes into a Set/List and remove all
deselected nodes from it.

public void nodeChanged (ValueChangeEvent ve) {
HtmlSelectBooleanCheckbox sender = (HtmlSelectBooleanCheckbox)
ve.getComponent();
if (sender.isSelected()) {
//add selected node
this.selectedNodes.add(sender.getTitle());
}
else{
//remove not selected node
this.selectedNodes.remove(sender.getTitle());
}
}

-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 23. Mai 2006 12:12
To: MyFaces Discussion
Subject: Tree2 & CheckedNode question

Hi,

I'm sory for this question, but there's not too much doc about this
on site, so... here we go:

I want to make a tree2 with checkboxes that I only collect once
together, and I could use some advice:

The examples I've seen, have the commandlink at every node, by
consequence fire off the second one gets clicked.

What I want, is:
- a CLIENT side tree2 (for speed)
- with checkboxes on every leaf element
- multiple leafs can be checked simultaneously ("simultaneously"
meaning before a new request fires off)
- under the tree a cmd button to ONLY THEN fire off an action.

The action should then perform an opeation on all the checked leafs.

I guess thsi is possible, but how to do this best?
If possible, I'd like a solution without javascript to collect the
checked nodes, yet if no other way exits, that's fine too.
With js I thought of smth like: (if it works, "addToRequest(#
{node.identifier});" ... should add the node ID to the request. So
all checked nodes would be sent with the request wen the cmd button
under the tree gets clicked.)

   



 
 




If possible, I would like to get rid of "addToRequest(#
{node.identifier});", of even better of the entire
"h:selectBooleanCheckbox" and use checkedNode (smth Matthias
Wessendorf provided us with for convenience - thank you Matthias! :-)

Yet in that case, how to collect all the ckecked nodes at the server
side?
Is it necessary to walk over all the nodes and perform a isChecked
check? (if so, does someone here has some tested code for this? Would
be a ice addition to http://wiki.apache.org/myfaces/Tree2 as well.
I think this would also be a fine candidate for a build-in method, to
sh

Re: jsf and struts

2006-05-23 Thread ould neman

Think you for your response.
I will try again.


RE: jsf and struts

2006-05-23 Thread David Friedman
I think there are a few ways to do it depending on what you put in your
page.

1) c:if ... etc...
2) if you are using panelGroup/panelGrid you can use the rendered attribute.

I'm sure there is another way I'm not thinking but again, it depends on
exactly what you are trying to put into your web page though I think you
wrote a 'table' so the above 2 ways COULD be used depending on how you code
the table in the page.

Regards,
David

-Original Message-
From: ould neman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 8:32 AM
To: MyFaces Discussion
Subject: Re: jsf and struts


[EMAIL PROTECTED] a écrit :
> Hi
>
> The rendered attribute of many components would come closest. Remember,
JSF is totally different from Struts.
>
> Hermod
>
> -Original Message-
> From: ould neman [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 23, 2006 2:19 PM
> To: MyFaces Discussion
> Subject: jsf and struts
>
>
> Hi,
> you can tell me the equivalent  at  logic:present in jsf
> Think's
>
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
>
> This email with attachments is solely for the use of the individual or
> entity to whom it is addressed. Please also be aware that DnB NOR cannot
> accept any payment orders or other legally binding correspondence with
> customers as a part of an email.
>
> This email message has been virus checked by the anti virus programs used
> in the DnB NOR Group.
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
>
>
>
But, I have a table, it visible if an error exist.
you can help me.



MethodBinding

2006-05-23 Thread Murat Hazer
Hi,I have a s:subform and selectOneMenu in this form, onchange i submit the form and in the valueChangeListener method of the backing bean i am calling another backing beans method using methodBinding and i want this method to navigate another page (
bean2.callMe excuted but it doesn't navigates or updates the view), and #{sessionScope.code} value is not updated with the selected items value, here is the code;
            
public class Change{    public void change(ValueChangeEvent valueChangeEvent) {        facesContext.getApplication().createMethodBinding(                    "#{bean2.callMe}", new Class[] {}).invoke(
        facesContext, new Object[] {});    }}regards-- Murat HAZER


Re: Component like panelGrid with ul and li

2006-05-23 Thread Rafael Nami
I'm pretty sure that you can do it with .
You can see it running in http://myfaces.apache.org/tomahawk/dataList.html
 
Cheers Matt, keep up the excellent work
 
Rafael Mauricio Nami 
2006/5/23, Matt Raible <[EMAIL PROTECTED]>:
Does anyone know if there's a panelGrid available that spits out instead of ?
I'm looking to convert to prettier forms that put a label on top of afield and not using a panelGrid with JSP results in components notknowing about each other the first time (the good ol' JSF 1.1 + JSP
problem).Here's an example of the form I'd like to create:http://dev.appfuse.org/appfuse/signup.htmlThanks,Matt



RE: tomahawk

2006-05-23 Thread Frank Russo
I agree with the original poster. I've looked on all of the online repos, 
including ibiblio, and the mergere one you mention below. Tomahawk used to be 
under org.apache.myfaces.tomahawk. Since they split the project from core, I 
haven't been able to find it either. 

As a workaround, you can download it directly from the apache site, and install 
it in your local repository or company repository. 

Here are the commands for each:

For Local repo (this is probably the easiest workaround):
mvn install:install-file -Dfile=tomahawk.jar 
-DgroupId=org.apache.myfaces.tomahawk -DartifactId=tomahawk -Dpackaging=jar 
-Dversion=1.1.2 -DgeneratePom=true

For company repo if you have one:
mvn deploy:deploy-file -Dfile=tomahawk.jar 
-DgroupId=org.apache.myfaces.tomahawk -DartifactId=tomahawk -Dpackaging=jar 
-Dversion=1.1.2 -DgeneratePom=true 
-Durl=sftp://companyrepo.ip/full_path_to_internal_files 
-DrepositoryId=name_of_repository


Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Michael Heinen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 6:16 AM
To: MyFaces Discussion
Subject: RE: tomahawk

I don't exactly understand what your error is.

I had also problems to download the libraries some time ago.
I added these mirrors into the settings.xml of maven:


codehaus mirror
Mirror site of Codehaus
http://repo.mergere.com/maven2
snapshots


   codehaus snapshot mirror
   Mirror site of Codehaus
   http://repo1.maven.org/maven2
   snapshots


   codehaus mirror
   Mirror Site of Codehaus
   http://repo1.maven.org/maven2
   codehaus


Does this help?

-Original Message-
From: ould neman [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 23. Mai 2006 12:06
To: MyFaces Discussion
Subject: Re: tomahawk

Michael Heinen a écrit :
> See
> http://myfaces.apache.org/source-repository.html
> http://wiki.apache.org/myfaces/Building_With_Maven
> http://wiki.apache.org/myfaces/Eclipse_IDE
>
> -Original Message-
> From: ould neman [mailto:[EMAIL PROTECTED]
> Sent: Dienstag, 23. Mai 2006 11:03
> To: MyFace Mailing List
> Subject: tomahawk
>
> Hi,
> Can you tell me, how I can found the url for download tomahawk with 
> Maven.
> please, I want a fast response.
> Think's
>
>
>
>
>   
Thank Michael Heinen  for the urls but, I have in my project.xml this section,  
I run Maven but It can load the librairie.
I am trying this url :*http://myfaces.apache.org

*
thomahawk
thomahawk
1.1.2
jar
http://myfaces.apache.org/

true










Tobago and duplicate id's

2006-05-23 Thread Oliver Kuhl

Hi,

I'm new to MyFaces and Tobago. In my first test application I created
a menubar, toolbar and a sheet filled with data from a database. The
first request always works fine an the page gets rendered. A simple
reload leads into an error:

java.lang.IllegalStateException: Client-id : _id6 is duplicated in the
faces tree.

This always happens every second request - one works, the next one
does not. I read about several problems with id's regarding plain JSF.
Should this happen with Facelets and Tobago, too? Is there any other
option than giving each component an id manually?

Regards,
   Ollie.


Component like panelGrid with ul and li

2006-05-23 Thread Matt Raible

Does anyone know if there's a panelGrid available that spits out
 instead of ?

I'm looking to convert to prettier forms that put a label on top of a
field and not using a panelGrid with JSP results in components not
knowing about each other the first time (the good ol' JSF 1.1 + JSP
problem).

Here's an example of the form I'd like to create:

http://dev.appfuse.org/appfuse/signup.html

Thanks,

Matt


Re: jsf and struts

2006-05-23 Thread ould neman

[EMAIL PROTECTED] a écrit :

Hi

The rendered attribute of many components would come closest. Remember, JSF is 
totally different from Struts.

Hermod

-Original Message-
From: ould neman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 2:19 PM
To: MyFaces Discussion
Subject: jsf and struts


Hi,
you can tell me the equivalent  at  logic:present in jsf
Think's 



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 


This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


  

But, I have a table, it visible if an error exist.
you can help me.


RE: Who uses Single Sign On with JSF?

2006-05-23 Thread hermod.opstvedt



Hi
 
There 
is not any particular functionality in JSF that supports SSO explicitly. This is 
normally handled in the container, or by plugging in an API such as Acegi or 
SecurityFilter.
 
Hermod

  -Original Message-From: Rogerio Pereira 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, May 23, 2006 2:25 
  PMTo: MyFaces DiscussionSubject: Who uses Single Sign On 
  with JSF?Hi,I would like to know if somebody uses 
  SSO with JSF, i'm trying to find a good way to do it in my apps.Thanks 
  for any answer.-- Yours truly 
  (Atenciosamente),Rogério 

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *




RE: jsf and struts

2006-05-23 Thread hermod.opstvedt
Hi

The rendered attribute of many components would come closest. Remember, JSF is 
totally different from Struts.

Hermod

-Original Message-
From: ould neman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 2:19 PM
To: MyFaces Discussion
Subject: jsf and struts


Hi,
you can tell me the equivalent  at  logic:present in jsf
Think's 


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *



Who uses Single Sign On with JSF?

2006-05-23 Thread Rogerio Pereira
Hi,I would like to know if somebody uses SSO with JSF, i'm trying to find a good way to do it in my apps.Thanks for any answer.-- Yours truly (Atenciosamente),Rogério


jsf and struts

2006-05-23 Thread ould neman

Hi,
you can tell me the equivalent  at  logic:present in jsf
Think's 


RE: Tree2 & CheckedNode question

2006-05-23 Thread Michael Heinen
There is only one request.
The valueChangeListener listener is called after you submitted your
page. You can select/deselect as many nodes as you want in a client side
tree without generating a server request. The valueChangeListener is
called after you submitted the form. It is then called for each changed
node.

-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 23. Mai 2006 13:18
To: MyFaces Discussion
Subject: Re: Tree2 & CheckedNode question

This seems worse then a resquest per checked node: now you have a  
server round trip per time a user "clicks" on +/-
The best solution is (as in my question) one where there is ONLY one  
request, at the end.
Then only the nodes the user selected in the end (after his doubts -  
think proces of checking/unchecking) are taking into account.
(or am I missing smth?)
Phil


On 23 May 2006, at 12:39, Michael Heinen wrote:

It is very easy to collect the checked nodes on the server.
You could use a valueChangeListener.



Then you could add all selected nodes into a Set/List and remove all
deselected nodes from it.

public void nodeChanged (ValueChangeEvent ve) {
HtmlSelectBooleanCheckbox sender = (HtmlSelectBooleanCheckbox)
ve.getComponent();
if (sender.isSelected()) {
//add selected node
this.selectedNodes.add(sender.getTitle());
}
else{
//remove not selected node
this.selectedNodes.remove(sender.getTitle());
}
}

-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 23. Mai 2006 12:12
To: MyFaces Discussion
Subject: Tree2 & CheckedNode question

Hi,

I'm sory for this question, but there's not too much doc about this
on site, so... here we go:

I want to make a tree2 with checkboxes that I only collect once
together, and I could use some advice:

The examples I've seen, have the commandlink at every node, by
consequence fire off the second one gets clicked.

What I want, is:
- a CLIENT side tree2 (for speed)
- with checkboxes on every leaf element
- multiple leafs can be checked simultaneously ("simultaneously"
meaning before a new request fires off)
- under the tree a cmd button to ONLY THEN fire off an action.

The action should then perform an opeation on all the checked leafs.

I guess thsi is possible, but how to do this best?
If possible, I'd like a solution without javascript to collect the
checked nodes, yet if no other way exits, that's fine too.
With js I thought of smth like: (if it works, "addToRequest(#
{node.identifier});" ... should add the node ID to the request. So
all checked nodes would be sent with the request wen the cmd button
under the tree gets clicked.)

   



 
 


  

If possible, I would like to get rid of "addToRequest(#
{node.identifier});", of even better of the entire
"h:selectBooleanCheckbox" and use checkedNode (smth Matthias
Wessendorf provided us with for convenience - thank you Matthias! :-)

Yet in that case, how to collect all the ckecked nodes at the server
side?
Is it necessary to walk over all the nodes and perform a isChecked
check? (if so, does someone here has some tested code for this? Would
be a ice addition to http://wiki.apache.org/myfaces/Tree2 as well.
I think this would also be a fine candidate for a build-in method, to
ship with the ckeckNode tree. As with a checkednode tree, you have
the great option to batch process all checked nodes at once,
serverside, compared to all the servertrips per checked node you'd
have without a checkednode tree. (this is what I love most about it,
it's a great idea, yet now I guess every dev has to program the same
method over and over again for tree-traversal)

Thanks in advance,
Phil











Re: tomahawk

2006-05-23 Thread ould neman

Michael Heinen a écrit :

I don't exactly understand what your error is.

I had also problems to download the libraries some time ago.
I added these mirrors into the settings.xml of maven:


codehaus mirror
Mirror site of Codehaus
http://repo.mergere.com/maven2
snapshots


   codehaus snapshot mirror
   Mirror site of Codehaus
   http://repo1.maven.org/maven2
   snapshots


   codehaus mirror
   Mirror Site of Codehaus
   http://repo1.maven.org/maven2
   codehaus


Does this help?

-Original Message-
From: ould neman [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 23. Mai 2006 12:06

To: MyFaces Discussion
Subject: Re: tomahawk

Michael Heinen a écrit :
  
See 
http://myfaces.apache.org/source-repository.html

http://wiki.apache.org/myfaces/Building_With_Maven
http://wiki.apache.org/myfaces/Eclipse_IDE

-Original Message-
From: ould neman [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 23. Mai 2006 11:03

To: MyFace Mailing List
Subject: tomahawk

Hi,
Can you tell me, how I can found the url for download tomahawk with
Maven.
please, I want a fast response.
Think's




  

Thank Michael Heinen  for the urls but, I have in my project.xml this 
section,  I run Maven but It can load the librairie.

I am trying this url :*http://myfaces.apache.org

*
thomahawk
thomahawk
1.1.2
jar
http://myfaces.apache.org/

true






  

I want download thomahawk.jar in Maven Repository,
I write in Project.xml the dependency, it doesn't download the library
Think's



Re: Tree2 & CheckedNode question

2006-05-23 Thread Philippe Lamote
This seems worse then a resquest per checked node: now you have a  
server round trip per time a user "clicks" on +/-
The best solution is (as in my question) one where there is ONLY one  
request, at the end.
Then only the nodes the user selected in the end (after his doubts -  
think proces of checking/unchecking) are taking into account.

(or am I missing smth?)
Phil


On 23 May 2006, at 12:39, Michael Heinen wrote:

It is very easy to collect the checked nodes on the server.
You could use a valueChangeListener.



Then you could add all selected nodes into a Set/List and remove all
deselected nodes from it.

public void nodeChanged (ValueChangeEvent ve) {
HtmlSelectBooleanCheckbox sender = (HtmlSelectBooleanCheckbox)
ve.getComponent();
if (sender.isSelected()) {
//add selected node
this.selectedNodes.add(sender.getTitle());
}
else{
//remove not selected node
this.selectedNodes.remove(sender.getTitle());
}
}

-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 23. Mai 2006 12:12
To: MyFaces Discussion
Subject: Tree2 & CheckedNode question

Hi,

I'm sory for this question, but there's not too much doc about this
on site, so... here we go:

I want to make a tree2 with checkboxes that I only collect once
together, and I could use some advice:

The examples I've seen, have the commandlink at every node, by
consequence fire off the second one gets clicked.

What I want, is:
- a CLIENT side tree2 (for speed)
- with checkboxes on every leaf element
- multiple leafs can be checked simultaneously ("simultaneously"
meaning before a new request fires off)
- under the tree a cmd button to ONLY THEN fire off an action.

The action should then perform an opeation on all the checked leafs.

I guess thsi is possible, but how to do this best?
If possible, I'd like a solution without javascript to collect the
checked nodes, yet if no other way exits, that's fine too.
With js I thought of smth like: (if it works, "addToRequest(#
{node.identifier});" ... should add the node ID to the request. So
all checked nodes would be sent with the request wen the cmd button
under the tree gets clicked.)

  



 
 




If possible, I would like to get rid of "addToRequest(#
{node.identifier});", of even better of the entire
"h:selectBooleanCheckbox" and use checkedNode (smth Matthias
Wessendorf provided us with for convenience - thank you Matthias! :-)

Yet in that case, how to collect all the ckecked nodes at the server
side?
Is it necessary to walk over all the nodes and perform a isChecked
check? (if so, does someone here has some tested code for this? Would
be a ice addition to http://wiki.apache.org/myfaces/Tree2 as well.
I think this would also be a fine candidate for a build-in method, to
ship with the ckeckNode tree. As with a checkednode tree, you have
the great option to batch process all checked nodes at once,
serverside, compared to all the servertrips per checked node you'd
have without a checkednode tree. (this is what I love most about it,
it's a great idea, yet now I guess every dev has to program the same
method over and over again for tree-traversal)

Thanks in advance,
Phil








RE: Tree2 & CheckedNode question

2006-05-23 Thread Michael Heinen
It is very easy to collect the checked nodes on the server.
You could use a valueChangeListener. 



Then you could add all selected nodes into a Set/List and remove all
deselected nodes from it.

public void nodeChanged (ValueChangeEvent ve) {
HtmlSelectBooleanCheckbox sender = (HtmlSelectBooleanCheckbox)
ve.getComponent();
if (sender.isSelected()) {
//add selected node
this.selectedNodes.add(sender.getTitle());
}
else{
//remove not selected node
this.selectedNodes.remove(sender.getTitle());
}
}

-Original Message-
From: Philippe Lamote [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 23. Mai 2006 12:12
To: MyFaces Discussion
Subject: Tree2 & CheckedNode question

Hi,

I'm sory for this question, but there's not too much doc about this  
on site, so... here we go:

I want to make a tree2 with checkboxes that I only collect once  
together, and I could use some advice:

The examples I've seen, have the commandlink at every node, by  
consequence fire off the second one gets clicked.

What I want, is:
- a CLIENT side tree2 (for speed)
- with checkboxes on every leaf element
- multiple leafs can be checked simultaneously ("simultaneously"  
meaning before a new request fires off)
- under the tree a cmd button to ONLY THEN fire off an action.

The action should then perform an opeation on all the checked leafs.

I guess thsi is possible, but how to do this best?
If possible, I'd like a solution without javascript to collect the  
checked nodes, yet if no other way exits, that's fine too.
With js I thought of smth like: (if it works, "addToRequest(# 
{node.identifier});" ... should add the node ID to the request. So  
all checked nodes would be sent with the request wen the cmd button  
under the tree gets clicked.)

  



 
 


  

If possible, I would like to get rid of "addToRequest(# 
{node.identifier});", of even better of the entire  
"h:selectBooleanCheckbox" and use checkedNode (smth Matthias  
Wessendorf provided us with for convenience - thank you Matthias! :-)

Yet in that case, how to collect all the ckecked nodes at the server  
side?
Is it necessary to walk over all the nodes and perform a isChecked  
check? (if so, does someone here has some tested code for this? Would  
be a ice addition to http://wiki.apache.org/myfaces/Tree2 as well.
I think this would also be a fine candidate for a build-in method, to  
ship with the ckeckNode tree. As with a checkednode tree, you have  
the great option to batch process all checked nodes at once,  
serverside, compared to all the servertrips per checked node you'd  
have without a checkednode tree. (this is what I love most about it,  
it's a great idea, yet now I guess every dev has to program the same  
method over and over again for tree-traversal)

Thanks in advance,
Phil







RE: tomahawk

2006-05-23 Thread Michael Heinen
I don't exactly understand what your error is.

I had also problems to download the libraries some time ago.
I added these mirrors into the settings.xml of maven:


codehaus mirror
Mirror site of Codehaus
http://repo.mergere.com/maven2
snapshots


   codehaus snapshot mirror
   Mirror site of Codehaus
   http://repo1.maven.org/maven2
   snapshots


   codehaus mirror
   Mirror Site of Codehaus
   http://repo1.maven.org/maven2
   codehaus


Does this help?

-Original Message-
From: ould neman [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 23. Mai 2006 12:06
To: MyFaces Discussion
Subject: Re: tomahawk

Michael Heinen a écrit :
> See 
> http://myfaces.apache.org/source-repository.html
> http://wiki.apache.org/myfaces/Building_With_Maven
> http://wiki.apache.org/myfaces/Eclipse_IDE
>
> -Original Message-
> From: ould neman [mailto:[EMAIL PROTECTED] 
> Sent: Dienstag, 23. Mai 2006 11:03
> To: MyFace Mailing List
> Subject: tomahawk
>
> Hi,
> Can you tell me, how I can found the url for download tomahawk with
> Maven.
> please, I want a fast response.
> Think's
>
>
>
>
>   
Thank Michael Heinen  for the urls but, I have in my project.xml this 
section,  I run Maven but It can load the librairie.
I am trying this url :*http://myfaces.apache.org

*
thomahawk
thomahawk
1.1.2
jar
http://myfaces.apache.org/

true







Tree2 & CheckedNode question

2006-05-23 Thread Philippe Lamote

Hi,

I'm sory for this question, but there's not too much doc about this  
on site, so... here we go:


I want to make a tree2 with checkboxes that I only collect once  
together, and I could use some advice:


The examples I've seen, have the commandlink at every node, by  
consequence fire off the second one gets clicked.


What I want, is:
- a CLIENT side tree2 (for speed)
- with checkboxes on every leaf element
- multiple leafs can be checked simultaneously ("simultaneously"  
meaning before a new request fires off)

- under the tree a cmd button to ONLY THEN fire off an action.

The action should then perform an opeation on all the checked leafs.

I guess thsi is possible, but how to do this best?
If possible, I'd like a solution without javascript to collect the  
checked nodes, yet if no other way exits, that's fine too.
With js I thought of smth like: (if it works, "addToRequest(# 
{node.identifier});" ... should add the node ID to the request. So  
all checked nodes would be sent with the request wen the cmd button  
under the tree gets clicked.)


 var="node" varNodeToggler="t">



			

 
	 	 





If possible, I would like to get rid of "addToRequest(# 
{node.identifier});", of even better of the entire  
"h:selectBooleanCheckbox" and use checkedNode (smth Matthias  
Wessendorf provided us with for convenience - thank you Matthias! :-)


Yet in that case, how to collect all the ckecked nodes at the server  
side?
Is it necessary to walk over all the nodes and perform a isChecked  
check? (if so, does someone here has some tested code for this? Would  
be a ice addition to http://wiki.apache.org/myfaces/Tree2 as well.
I think this would also be a fine candidate for a build-in method, to  
ship with the ckeckNode tree. As with a checkednode tree, you have  
the great option to batch process all checked nodes at once,  
serverside, compared to all the servertrips per checked node you'd  
have without a checkednode tree. (this is what I love most about it,  
it's a great idea, yet now I guess every dev has to program the same  
method over and over again for tree-traversal)


Thanks in advance,
Phil




Re: tomahawk

2006-05-23 Thread ould neman

Michael Heinen a écrit :
See 
http://myfaces.apache.org/source-repository.html

http://wiki.apache.org/myfaces/Building_With_Maven
http://wiki.apache.org/myfaces/Eclipse_IDE

-Original Message-
From: ould neman [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 23. Mai 2006 11:03

To: MyFace Mailing List
Subject: tomahawk

Hi,
Can you tell me, how I can found the url for download tomahawk with
Maven.
please, I want a fast response.
Think's




  
Thank Michael Heinen  for the urls but, I have in my project.xml this 
section,  I run Maven but It can load the librairie.

I am trying this url :*http://myfaces.apache.org

*
   thomahawk
   thomahawk
   1.1.2
   jar
   http://myfaces.apache.org/
   
   true
   
   


Re: When Can I can the latest tomahawk example source code

2006-05-23 Thread Anthony Hong

I have found how to use this example integrate with facelt.
Menu looks well. But I don't know what should I put into action
argument,  what I put into there doesn't decode correct in html page

NavigationMenuItem vendorManagement = new NavigationMenuItem("Vendor
Management", null);
   NavigationMenuItem vendor = new NavigationMenuItem("Vendors",
"page_vendor");
   vendor.setTarget("_self");
   vendorManagement.add(vendor);
   vendorManagement.add(new NavigationMenuItem("Split",null,null,true));
   vendorManagement.add(new NavigationMenuItem("OCN",null));
   NavigationMenuItem missingInvoice = new
NavigationMenuItem("Missing invoice", null);

   menuList.add(vendorManagement);
   menuList.add(missingInvoice);

What page shows is:
var menuComp_menu =
[
[null, 'Vendor Management', null, 'linkDummyForm', null,
[null, 'Vendors', 'menuComp_menu:A]page_vendor', 'linkDummyForm', null],
_cmSplit,
[null, 'Split', null, 'linkDummyForm', null],
[null, 'OCN', null, 'linkDummyForm', null]],
[null, 'Missing invoice', null, 'linkDummyForm', null]];

It doesn't correct. what's wrong with my code


On 5/23/06, Anthony Hong <[EMAIL PROTECTED]> wrote:

I want to know how to write jsCookMenu in backend. Thanks


   
   


--

Anthony Hong




--

Anthony Hong


RE: tomahawk

2006-05-23 Thread Michael Heinen
See 
http://myfaces.apache.org/source-repository.html
http://wiki.apache.org/myfaces/Building_With_Maven
http://wiki.apache.org/myfaces/Eclipse_IDE

-Original Message-
From: ould neman [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 23. Mai 2006 11:03
To: MyFace Mailing List
Subject: tomahawk

Hi,
Can you tell me, how I can found the url for download tomahawk with
Maven.
please, I want a fast response.
Think's





tomahawk

2006-05-23 Thread ould neman

Hi,
Can you tell me, how I can found the url for download tomahawk with Maven.
please, I want a fast response.
Think's


Re: datatable and selecting a row event

2006-05-23 Thread Cosma Colanicchia
A quick solution is to nest an  inside your commandLink to update a property of your backing bean.There is another approach that I use with a dataTable, maybe it works also for a dataGrid: if your list is loaded using a DataModel, you can simply ask that object the current row in your backing bean.
Cosma2006/5/23, Alex Burton <[EMAIL PROTECTED]>:
Thanks Volker.

How do you catch the 'row id' though?

Cheers,
Alex.On 5/23/06, Volker Weber <
[EMAIL PROTECTED]> wrote:
Hi Alex,we do this by using h:commandlink, with parameter, for displaying the row data.But you need to hit the text when clicking on a row.regards,  Volker2006/5/23, Alex Burton <

[EMAIL PROTECTED]>:> Hi all,>>  I'm trying to use a datagrid as a way to quickly find and select a> particular item from a large list of items. The items have several> attributes I wish to display and can number in the 100's, so a drop down
> list isn't the right way to go...>>  So... I have my datagrid displaying beautifully... but am now stumped on> how to throw an even to catch a row selection... I know there are the> rowOnClick="_javascript_" attributes in the datagrid, but how do i bind that
> to something useful?>>  Anyone have any pointers? Ideally I'd like to get the "forceIdIndexFormula"> value (or object it represents in my backing bean).>>  Thanks in advance,
>  Alex.>> --> "We should move forwards, not backwards, upwards, not sideways, and always> twirling, twirling towards victory!"
-- 
"We should move forwards, not backwards, upwards, not sideways, and always twirling, twirling towards victory!"




About taglib of myfaces

2006-05-23 Thread Susumu Majima

Hello

I use tomahawk 1.1.2 with JBOSS4.0.4CR2. and jboss-seam1.0.0CR2

I wrote some test program for tomahawk extension tags.
Some test program got errors saying
" The absolute uri: http://myfaces.apache.org/tomahawk cannot be resolved in 
either web.xml or the jar files deployed with this application".


This error occured when I used myfaces-api.jar and myfaces-impl.jar 
delivered with jboss-seam-1.0.0CR2.


I tried to change these files to myfaces-api-1.1.3.jar and 
myfaces-impl-1.1.3.jar.
So error was changed but sumilar. "The absolute uri: 
http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar 
files deployed with this application"


I was confused because I don't know where taglib tld file is when I write 
like below.

<%@ 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/tomahawk"; prefix="t"%>

Any advice will help me.


Susumu





When Can I can the latest tomahawk example source code

2006-05-23 Thread Anthony Hong

I want to know how to write jsCookMenu in backend. Thanks


   
   


--

Anthony Hong


Exception

2006-05-23 Thread Fu, Lieyong
Title: Message



Can anybody please 
tell what is this exception about?
Thanks,
Lieyong
 
java.lang.NullPointerException    
at 
com.sun.faces.renderkit.html_basic.CommandLinkRenderer.getHiddenFieldName(CommandLinkRenderer.java:136)    
at 
com.sun.faces.renderkit.html_basic.CommandLinkRenderer.encodeEnd(CommandLinkRenderer.java:320)    
at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:712)    
at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)    
at 
com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)    
at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:693)    
at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)    
at 
com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)    
at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:693)    
at 
org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:444)    
at 
org.apache.myfaces.renderkit.RendererUtils.renderChildren(RendererUtils.java:427)    
at 
org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:448)    
at 
org.apache.myfaces.custom.layout.HtmlLayoutRenderer.renderTableCell(HtmlLayoutRenderer.java:259)    
at 
org.apache.myfaces.custom.layout.HtmlLayoutRenderer.renderClassic(HtmlLayoutRenderer.java:101)    
at 
org.apache.myfaces.custom.layout.HtmlLayoutRenderer.encodeEnd(HtmlLayoutRenderer.java:66)    
at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:712)    
at 
javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:616)    
at 
javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:539)    
at 
org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:55)    
at 
jsp_servlet._jsp.__home_orders._jspService(home_orders.jsp:65)    
at 
weblogic.servlet.jsp.JspBase.service(JspBase.java:33)    
at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)    
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)    
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)    
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)    
at 
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:328)    
at 
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)    
at 
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)    
at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)    
at 
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)    
at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)    
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)    
at 
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)    
at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)    
at 
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)    
at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)    
at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)    
at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)    
at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)    
at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)    
at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)    
at 
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)    
at 
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)>


Re: Can one JSF page with three forms which work separately?

2006-05-23 Thread Murat Hazer
I talked with someone who successfully uses ajaxanaywhere with latest myfaces, only difference between me and him is he defines the zones to be refreshed on the server side, i define them on the client side. I don't want to put ajaxanywhere related (
AAutils.()) java code to my backing beans. May be you can try server side code, it may work, then you can inform as it worked or not.regards...On 5/23/06, 
Anthony Hong <[EMAIL PROTECTED]> wrote:
:- (I have the same problem. I tired it yesterday, It doesn't work for me.On 5/23/06, Murat Hazer <[EMAIL PROTECTED]> wrote:> if they don't fillfull your request you can try ajaxanywhere [1]. (but i
> couldn't make it work with latest myfaces and tomahawk).>> [1] http://ajaxanywhere.sourceforge.net/>> regards...>>> On 5/23/06, Anthony Hong <
[EMAIL PROTECTED]> wrote:> > I also need page navigation in each div.> > Example:> > In div address information, Click Add button will display add form
> > page. But others two divs are not changed> >> > Can sandbox supports this? I doesn't see Myfaces demo. It describes in> > multiplue form saving partial. I guess my requirement can not be
> > fullfilled> >> >> > On 5/23/06, Murat Hazer <[EMAIL PROTECTED]> wrote:> > > Sandbox has two components which may help you, s:commandButtonAjax and
> > > s:subForm.> > >> > > regards..> > >> > >> > > On 5/22/06, Anthony Hong < [EMAIL PROTECTED]
> wrote:> > > > I have a web page with three form in each div, say:> > > > div 1: base information> > > > div 2: address information> > > > div 3: phone information.
> > > >> > > > Each of them is a list table with add, edit, delete function.> > > > Can I operator each div in one page like I processing each jsf page in> a> > > div?
> > > > I think this should with ajax supports, right?> > > > If it can be achieved, which ajax framework supports well with myfaces> > > > to achieves my goad.> > > >
> > > > Thanks> > > >> > > > --> > > >> > > > Anthony Hong> > > >> > >> > >> > >> > > --
> > > Murat HAZER> > > Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer> > > Tel - Phone: +90 222 335 05 80 - 1395> > > Cep Tel - Mobile Phone: +90 532 472 00 63
> > > Blog URL: http://www.projedunyasi.org> > > Yahoo Group:> > > http://groups.yahoo.com/group/malatyafenlisesi/
> >> >> > --> >> > Anthony Hong> > -->> Murat HAZER> Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
> Tel - Phone: +90 222 335 05 80 - 1395> Cep Tel - Mobile Phone: +90 532 472 00 63> Blog URL: http://www.projedunyasi.org> Yahoo Group:> 
http://groups.yahoo.com/group/malatyafenlisesi/--Anthony Hong-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: 
http://groups.yahoo.com/group/malatyafenlisesi/


Re: datatable and selecting a row event

2006-05-23 Thread Alex Burton
Thanks Volker.

How do you catch the 'row id' though?

Cheers,
Alex.On 5/23/06, Volker Weber <[EMAIL PROTECTED]> wrote:
Hi Alex,we do this by using h:commandlink, with parameter, for displaying the row data.But you need to hit the text when clicking on a row.regards,  Volker2006/5/23, Alex Burton <
[EMAIL PROTECTED]>:> Hi all,>>  I'm trying to use a datagrid as a way to quickly find and select a> particular item from a large list of items. The items have several> attributes I wish to display and can number in the 100's, so a drop down
> list isn't the right way to go...>>  So... I have my datagrid displaying beautifully... but am now stumped on> how to throw an even to catch a row selection... I know there are the> rowOnClick="_javascript_" attributes in the datagrid, but how do i bind that
> to something useful?>>  Anyone have any pointers? Ideally I'd like to get the "forceIdIndexFormula"> value (or object it represents in my backing bean).>>  Thanks in advance,
>  Alex.>> --> "We should move forwards, not backwards, upwards, not sideways, and always> twirling, twirling towards victory!"-- 
"We should move forwards, not backwards, upwards, not sideways, and always twirling, twirling towards victory!"


Re: Can one JSF page with three forms which work separately?

2006-05-23 Thread Anthony Hong

:- (
I have the same problem. I tired it yesterday, It doesn't work for me.

On 5/23/06, Murat Hazer <[EMAIL PROTECTED]> wrote:

if they don't fillfull your request you can try ajaxanywhere [1]. (but i
couldn't make it work with latest myfaces and tomahawk).

[1] http://ajaxanywhere.sourceforge.net/

regards...


On 5/23/06, Anthony Hong <[EMAIL PROTECTED]> wrote:
> I also need page navigation in each div.
> Example:
> In div address information, Click Add button will display add form
> page. But others two divs are not changed
>
> Can sandbox supports this? I doesn't see Myfaces demo. It describes in
> multiplue form saving partial. I guess my requirement can not be
> fullfilled
>
>
> On 5/23/06, Murat Hazer <[EMAIL PROTECTED]> wrote:
> > Sandbox has two components which may help you, s:commandButtonAjax and
> > s:subForm.
> >
> > regards..
> >
> >
> > On 5/22/06, Anthony Hong < [EMAIL PROTECTED]> wrote:
> > > I have a web page with three form in each div, say:
> > > div 1: base information
> > > div 2: address information
> > > div 3: phone information.
> > >
> > > Each of them is a list table with add, edit, delete function.
> > > Can I operator each div in one page like I processing each jsf page in
a
> > div?
> > > I think this should with ajax supports, right?
> > > If it can be achieved, which ajax framework supports well with myfaces
> > > to achieves my goad.
> > >
> > > Thanks
> > >
> > > --
> > >
> > > Anthony Hong
> > >
> >
> >
> >
> > --
> > Murat HAZER
> > Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
> > Tel - Phone: +90 222 335 05 80 - 1395
> > Cep Tel - Mobile Phone: +90 532 472 00 63
> > Blog URL: http://www.projedunyasi.org
> > Yahoo Group:
> > http://groups.yahoo.com/group/malatyafenlisesi/
>
>
> --
>
> Anthony Hong
>



--

Murat HAZER
Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Tel - Phone: +90 222 335 05 80 - 1395
Cep Tel - Mobile Phone: +90 532 472 00 63
Blog URL: http://www.projedunyasi.org
Yahoo Group:
http://groups.yahoo.com/group/malatyafenlisesi/



--

Anthony Hong


Re: Good Resources for JSF Component Development?

2006-05-23 Thread Werner Punz
I can second that choice, this book currently is the best one
regarding the component development area.



Matthias Wessendorf schrieb:
> Hi Mike,
> 
> go ahead and buy "Pro JSF and AJAX" from Apress.
> 
> -Matthias
> 
> On 5/22/06, Mike Duffy <[EMAIL PROTECTED]> wrote:
>> Does anyone have any good resources (books, links, etc.) for JSF
>> component development?
>>
>> One good intro level link is:
>> http://www-128.ibm.com/developerworks/java/library/j-jsf4/
>>
>> The best resource will probably be the Tomahawk source, but before I
>> dive into the source, I'd
>> like to get my feet wet.
>>
>> A specific question:  Is it possible in the decoding process to read
>> from a style sheet?  If my
>> component contains multiple components I'd like to be able to specify
>> one style reference for the
>> component, read the style values and apply them to the contained
>> components.  Is that possible?
>>
>> Thx.
>>
>> Mike
>>
>> __
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
>>
> 
> 



Re: Can one JSF page with three forms which work separately?

2006-05-23 Thread Murat Hazer
if they don't fillfull your request you can try ajaxanywhere [1]. (but i couldn't make it work with latest myfaces and tomahawk).[1] http://ajaxanywhere.sourceforge.net/
regards...On 5/23/06, Anthony Hong <[EMAIL PROTECTED]> wrote:
I also need page navigation in each div.Example:In div address information, Click Add button will display add formpage. But others two divs are not changedCan sandbox supports this? I doesn't see Myfaces demo. It describes in
multiplue form saving partial. I guess my requirement can not befullfilledOn 5/23/06, Murat Hazer <[EMAIL PROTECTED]> wrote:> Sandbox has two components which may help you, s:commandButtonAjax and
> s:subForm.>> regards..>>> On 5/22/06, Anthony Hong < [EMAIL PROTECTED]> wrote:> > I have a web page with three form in each div, say:
> > div 1: base information> > div 2: address information> > div 3: phone information.> >> > Each of them is a list table with add, edit, delete function.> > Can I operator each div in one page like I processing each jsf page in a
> div?> > I think this should with ajax supports, right?> > If it can be achieved, which ajax framework supports well with myfaces> > to achieves my goad.> >> > Thanks
> >> > --> >> > Anthony Hong> > --> Murat HAZER> Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer> Tel - Phone: +90 222 335 05 80 - 1395
> Cep Tel - Mobile Phone: +90 532 472 00 63> Blog URL: http://www.projedunyasi.org> Yahoo Group:> 
http://groups.yahoo.com/group/malatyafenlisesi/--Anthony Hong-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: 
http://groups.yahoo.com/group/malatyafenlisesi/


Re: Can one JSF page with three forms which work separately?

2006-05-23 Thread Anthony Hong

I also need page navigation in each div.
Example:
In div address information, Click Add button will display add form
page. But others two divs are not changed

Can sandbox supports this? I doesn't see Myfaces demo. It describes in
multiplue form saving partial. I guess my requirement can not be
fullfilled


On 5/23/06, Murat Hazer <[EMAIL PROTECTED]> wrote:

Sandbox has two components which may help you, s:commandButtonAjax and
s:subForm.

regards..


On 5/22/06, Anthony Hong < [EMAIL PROTECTED]> wrote:
> I have a web page with three form in each div, say:
> div 1: base information
> div 2: address information
> div 3: phone information.
>
> Each of them is a list table with add, edit, delete function.
> Can I operator each div in one page like I processing each jsf page in a
div?
> I think this should with ajax supports, right?
> If it can be achieved, which ajax framework supports well with myfaces
> to achieves my goad.
>
> Thanks
>
> --
>
> Anthony Hong
>



--
Murat HAZER
Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Tel - Phone: +90 222 335 05 80 - 1395
Cep Tel - Mobile Phone: +90 532 472 00 63
Blog URL: http://www.projedunyasi.org
Yahoo Group:
http://groups.yahoo.com/group/malatyafenlisesi/



--

Anthony Hong