RE: Bookmarking, History and JSF

2006-01-27 Thread Cash, Jamie
If a action resolves to a jsp page and not a method on a backing bean, then 
there can only be one consequence of that action.

In this case, and this case only, it would be useful for faces to render the 
link as a outputLink by computing the full URL.

The page designer, on the other hand should be able to code the links as 
commandLinks.

With this solution, all actions that can resolve to a single possible 
consequence, will link to a page that will be bookmarkable. These links will be 
listed in the HTML, and will therefore be followed by search engine robots.

Regards

Jamie

-Original Message-
From: Alexander Smirnov [mailto:[EMAIL PROTECTED]
Sent: 27 January 2006 12:16
To: MyFaces Development
Subject: Re: Bookmarking, History and JSF


Due to navigation caases, you page after GET request may be different 
from request to request, depend on application state. For bookmarkable 
links, best case to use redirect navigation options .
May be, for such cases best solution will be save/restore request state 
for redirect, simulate single request processing for redirects ? After 
such processing, You will have right ( bookmarkable ) uri in browser for 
page.
Second part for such solution can be ability for define default action 
methods for non-faces requested pages. In such, when re-visiting 
bookmarked page, in case of non-actual page client can be forward to 
different view ( as I see, such functions exist in Struts/Shale ).

 not submitting a form and loosing all JSF state but having a 
bookmarkable link?  - already exist in h:outputLink  with nested 
f:param 

Jesse Alexander (KBSA 21) :
 to put it in a nutshell:
 
 add GET-processing to JSF...
 
 +100 ;-)
 
 regards
 Alexander 
 
 -Original Message-
 From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
 Sent: Friday, January 27, 2006 10:35 AM
 To: MyFaces Development
 Subject: Bookmarking, History and JSF
 
 Hi all,
 
 I'm having ideas again. Must come from too much work with JSF ;)
 
 My idea:
 
 Bookmarking is a problem with JSF, right? Except you use h:outputLink,
 but then there's this slight problem with not being in the action
 system anymore ;)
 
 Now, what do I want to be able to see in my history or to bookmark? I
 want to bookmark simple pages, where state is not so important at all.
 Or only a small portion of the state is important...
 
 Those simple pages I usually refer to with an action attribute that
 is put (as a string) directly on the h:commandLink / or
 h:commandButton/ tag, right?
 
 Why not render out this action attribute as a parameter to the URL of
 the link optionally, not submitting a form and loosing all JSF state,
 but having a bookmarkable link?
 
 The developer can decide then:
  - do I need this link to be bookmarked
 - do I want this link to  use the plain old JSF posting system with
 state-saving.
 
 Enhancement: we could additionally render out params to this link as -
 yes, right, params to the URL. So people can optionally build there
 web-apps just like they were used to when JSF wasn't around.
 
 Good idea - bad idea - better idea ;) ?
 
 regards,
 
 Martin
 
 --
 
 http://www.irian.at
 
 Your JSF powerhouse -
 JSF Consulting, Development and
 Courses in English and German
 
 Professional Support for Apache MyFaces

-- 
Alexander Smirnov
Software developer
Exadel Inc.
http://www.exadel.com/
mail-to:[EMAIL PROTECTED]


INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
** N O T I C E *

This message and any attachments is intended only for the individual or company 
to which it is addressed and may contain
information which is privileged, confidential or prohibited from disclosure or 
unauthorised use. If the recipient of this
transmission is not the intended recipient, or the employee or agent 
responsible for delivering such materials to the
intended recipient, you are hereby notified that any use, any form of 
reproduction, dissemination, copying, disclosure, 
modification, distribution and/or publication of this e-mail message or its 
attachments other than by it's intended
recipient is strictly prohibited by the sender. If you have received it in 
error, please notify us immediately by 
telephone on the number above and destroy the message and all copies in your 
possession.

International Financial Data Services (UK) Ltd is authorised and regulated by 
the Financial Services Authority.

This footnote also confirms that this email message has been swept by 
MIMEsweeper for the presence of computer viruses.

**



TreeNode problem

2006-01-05 Thread Cash, Jamie
I am having some problems with tree node, using MyFaces 1.1.1.

I am constructing a tree node with the following statement but isLeaf returns 
true.

treeNode= new TreeNodeBase(nodeType.toString(), node, false);

This is still the case even if I explicitly call setLeaf(false); after creating 
the TreeNode.

The following debug places stright after creating the treenode statements 
output the messages detailed below:

DEBUG STATEMENTS
logger.debug(new treeNode.description:  + treeNode.getDescription());
logger.debug(new treeNode.type:  + treeNode.getType());
logger.debug(new treeNode.isLeaf:  + treeNode.isLeaf());

MESSAGES
2006-01-05 15:16:33,669 DEBUG 
[uk.co.ifdsgroup.security.form.SecurityHierarchyForm] new treeNode.description: 
eSecurity
2006-01-05 15:16:33,669 DEBUG 
[uk.co.ifdsgroup.security.form.SecurityHierarchyForm] new treeNode.type: root
2006-01-05 15:16:33,669 DEBUG 
[uk.co.ifdsgroup.security.form.SecurityHierarchyForm] new treeNode.isLeaf: true

Has anyone else experienced this, or am I doing something strange!

Regards

Jamie


INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
** N O T I C E *

This message and any attachments is intended only for the individual or company 
to which it is addressed and may contain
information which is privileged, confidential or prohibited from disclosure or 
unauthorised use. If the recipient of this
transmission is not the intended recipient, or the employee or agent 
responsible for delivering such materials to the
intended recipient, you are hereby notified that any use, any form of 
reproduction, dissemination, copying, disclosure, 
modification, distribution and/or publication of this e-mail message or its 
attachments other than by it's intended
recipient is strictly prohibited by the sender. If you have received it in 
error, please notify us immediately by 
telephone on the number above and destroy the message and all copies in your 
possession.

International Financial Data Services (UK) Ltd is authorised and regulated by 
the Financial Services Authority.

This footnote also confirms that this email message has been swept by 
MIMEsweeper for the presence of computer viruses.

**



commandNavigation2 with tiles

2005-11-25 Thread Cash, Jamie


 I am trying to use the commandNavigation in myfaces, but the menu behaves 
 normally when no action is associated with the commandNavigation2 tags, but 
 as soon as I associate an action, the menu will no longer remain highlighted.
 
 My code for the menu is as follows:
 
 %@ taglib prefix=f uri=http://java.sun.com/jsf/core%
 %@ taglib prefix=h uri=http://java.sun.com/jsf/html%
 %@ taglib prefix=t uri=http://myfaces.apache.org/tomahawk%
  
 t:div id=subnavigation_outer
 t:div id=subnavigation
 h:form
   t:panelNavigation2 id=menu layout=list itemClass=menu 
 activeItemClass=selected openItemClass=selected
   %-- About --%
   t:commandNavigation2 value=#{website.title_about} 
 action=nav_about styleClass=menu-item/
   
   %-- Products --%
   t:commandNavigation2 value=#{website.title_products} 
 styleClass=menu-item
   t:commandNavigation2 
 value=#{website.title_products_overview} action=nav_products_overview 
 styleClass=menu-item/
   t:commandNavigation2 
 value=#{website.title_products_esecurity} styleClass=menu-item
   t:commandNavigation2 
 value=#{website.title_products_esecurity_overview} 
 action=nav_products_esecurity_overview styleClass=menu-item/
   t:commandNavigation2 
 value=#{website.title_products_esecurity_demo} 
 action=nav_products_esecurity_demo styleClass=menu-item/
   /t:commandNavigation2
   /t:commandNavigation2
   
   %-- Consultancy --%
   t:commandNavigation2 value=#{website.title_consultancy} 
 action=nav_consultancy styleClass=menu-item/
   
   %-- Contact --%
   t:commandNavigation2 value=#{website.title_contact} 
 styleClass=menu-item
   t:commandNavigation2 
 value=#{website.title_contact_main} action=nav_contact_main 
 styleClass=menu-item/
   t:commandNavigation2 
 value=#{website.title_contact_enquiry} action=nav_contact_enquiry 
 styleClass=menu-item/
   t:commandNavigation2 
 value=#{website.title_contact_sales} action=nav_contact_sales 
 styleClass=menu-item/
   t:commandNavigation2 
 value=#{website.title_contact_support} action=nav_contact_support 
 styleClass=menu-item/
   /t:commandNavigation2
   
   %-- Forum --%
   t:commandNavigation2 value=#{website.title_forum} 
 action=nav_forum styleClass=menu-item/
   /t:panelNavigation2
 /h:form
 /t:div
 /t:div
 
 
 I am using MyFaces 1.1.1 with tiles.
 
 Do I need to raise this as a jira issue, or am I missing something?
 
 Regards 
 
 Jamie Cash
 


INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
** N O T I C E *

This message and any attachments is intended only for the individual or company 
to which it is addressed and may contain
information which is privileged, confidential or prohibited from disclosure or 
unauthorised use. If the recipient of this
transmission is not the intended recipient, or the employee or agent 
responsible for delivering such materials to the
intended recipient, you are hereby notified that any use, any form of 
reproduction, dissemination, copying, disclosure, 
modification, distribution and/or publication of this e-mail message or its 
attachments other than by it's intended
recipient is strictly prohibited by the sender. If you have received it in 
error, please notify us immediately by 
telephone on the number above and destroy the message and all copies in your 
possession.

International Financial Data Services (UK) Ltd is authorised and regulated by 
the Financial Services Authority.

This footnote also confirms that this email message has been swept by 
MIMEsweeper for the presence of computer viruses.

**



RE: [jira] Commented: (MYFACES-606) Tomahawk selectOneRadio doesn't validate. This is a side affect of patch for fixed issue 592.

2005-09-27 Thread Cash, Jamie
592 can also be closed, as this was a duplicate.

-Original Message-
From: Mathias Broekelmann (JIRA)
[mailto:[EMAIL PROTECTED]
Sent: 27 September 2005 11:34
To: Cash, Jamie
Subject: [jira] Commented: (MYFACES-606) Tomahawk selectOneRadio doesn't
validate. This is a side affect of patch for fixed issue 592.


[ 
http://issues.apache.org/jira/browse/MYFACES-606?page=comments#action_12330569 
] 

Mathias Broekelmann commented on MYFACES-606:
-

I´ve applied your patch (r291894). I have modified it a little bit since you 
used JDK 1.5 syntax for autoboxing.

It seams to work now but if you make the radio button required you get a 
validator exception for each row which might not be desired.

 Tomahawk selectOneRadio doesn't validate. This is a side affect of patch for 
 fixed issue 592.
 -

  Key: MYFACES-606
  URL: http://issues.apache.org/jira/browse/MYFACES-606
  Project: MyFaces
 Type: Bug
   Components: Tomahawk
 Versions: Nightly Build
  Environment: All
 Reporter: Jamie Cash
  Attachments: 606.patch.txt

 I have rewritten my patch for issue 592 to avoid the side affects described 
 above. I couldn't add the patch to 592 as that was closed so have had to 
 raise this issue instead.
 Patch to follow shortly.
 After the patch is applied, the component will now behave exacly as before 
 (call to super), if forceId is false or forceIdIndex is true, but will branch 
 into logic similar to that in UIInput if forceId is true AND forceIdIndex is 
 false.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
** N O T I C E *

This message and any attachments is intended only for the individual or company 
to which it is addressed and may contain
information which is privileged, confidential or prohibited from disclosure or 
unauthorised use. If the recipient of this
transmission is not the intended recipient, or the employee or agent 
responsible for delivering such materials to the
intended recipient, you are hereby notified that any use, any form of 
reproduction, dissemination, copying, disclosure, 
modification, distribution and/or publication of this e-mail message or its 
attachments other than by it's intended
recipient is strictly prohibited by the sender. If you have received it in 
error, please notify us immediately by 
telephone on the number above and destroy the message and all copies in your 
possession.

International Financial Data Services (UK) Ltd is authorised and regulated by 
the Financial Services Authority.

This footnote also confirms that this email message has been swept by 
MIMEsweeper for the presence of computer viruses.

**



RE: [jira] Commented: (MYFACES-606) Tomahawk selectOneRadio doesn't validate. This is a side affect of patch for fixed issue 592.

2005-09-27 Thread Cash, Jamie
Yes, this can now be closed, along with 592.

Thanks

Jamie

-Original Message-
From: Mathias Broekelmann (JIRA)
[mailto:[EMAIL PROTECTED]
Sent: 27 September 2005 11:40
To: dev@myfaces.apache.org
Subject: [jira] Commented: (MYFACES-606) Tomahawk selectOneRadio doesn't
validate. This is a side affect of patch for fixed issue 592.


[ 
http://issues.apache.org/jira/browse/MYFACES-606?page=comments#action_12330570 
] 

Mathias Broekelmann commented on MYFACES-606:
-

let us know if we can close this issue.

 Tomahawk selectOneRadio doesn't validate. This is a side affect of patch for 
 fixed issue 592.
 -

  Key: MYFACES-606
  URL: http://issues.apache.org/jira/browse/MYFACES-606
  Project: MyFaces
 Type: Bug
   Components: Tomahawk
 Versions: Nightly Build
  Environment: All
 Reporter: Jamie Cash
  Attachments: 606.patch.txt

 I have rewritten my patch for issue 592 to avoid the side affects described 
 above. I couldn't add the patch to 592 as that was closed so have had to 
 raise this issue instead.
 Patch to follow shortly.
 After the patch is applied, the component will now behave exacly as before 
 (call to super), if forceId is false or forceIdIndex is true, but will branch 
 into logic similar to that in UIInput if forceId is true AND forceIdIndex is 
 false.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
** N O T I C E *

This message and any attachments is intended only for the individual or company 
to which it is addressed and may contain
information which is privileged, confidential or prohibited from disclosure or 
unauthorised use. If the recipient of this
transmission is not the intended recipient, or the employee or agent 
responsible for delivering such materials to the
intended recipient, you are hereby notified that any use, any form of 
reproduction, dissemination, copying, disclosure, 
modification, distribution and/or publication of this e-mail message or its 
attachments other than by it's intended
recipient is strictly prohibited by the sender. If you have received it in 
error, please notify us immediately by 
telephone on the number above and destroy the message and all copies in your 
possession.

International Financial Data Services (UK) Ltd is authorised and regulated by 
the Financial Services Authority.

This footnote also confirms that this email message has been swept by 
MIMEsweeper for the presence of computer viruses.

**



h:selectOneListBox bug

2005-09-20 Thread Cash, Jamie
I have found a problem with the selectOneListBox on the new myfaces release 
(1.1.0).

When creatng a listbox as in my jsp as follows:

h:selectOneListbox id=system size=1 value=#{DealBean.system}
f:selectItem itemValue=0 itemLabel=Please Select... /
f:selectItems value=#{DealBean.systemList} /
/h:selectOneListbox

where getSystemList is defined as follows:

public ListSelectItem getSystemList()
{
// what to return
  ListSelectItem items = new ArrayListSelectItem();

// Add Systems
  items.add(new SelectItem(FAST, FAST));
  items.add(new SelectItem(iFAST, iFAST));
  items.add(new SelectItem(AWD, AWD));

  return items;
}

I get the following error when I hit the page:
javax.servlet.ServletException: ServletException in '/Login.jsp': Conversion 
Error setting value ''{0}'' for ''{1}'.

This used to work successfully in myfaces 1.0.9.

Regards

__
I N T E R N A T I O N A L   F I N A N C I A L   D A T A  S E R V I C ES 
 
Jamie Cash
Technical Architect
IFDS House, St Nicholas Lane, Basildon, SS15 5FS
Tel: 01268 44 3739
email: [EMAIL PROTECTED]
___




INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
** N O T I C E *

This message and any attachments is intended only for the individual or company 
to which it is addressed and may contain
information which is privileged, confidential or prohibited from disclosure or 
unauthorised use. If the recipient of this
transmission is not the intended recipient, or the employee or agent 
responsible for delivering such materials to the
intended recipient, you are hereby notified that any use, any form of 
reproduction, dissemination, copying, disclosure, 
modification, distribution and/or publication of this e-mail message or its 
attachments other than by it's intended
recipient is strictly prohibited by the sender. If you have received it in 
error, please notify us immediately by 
telephone on the number above and destroy the message and all copies in your 
possession.

International Financial Data Services (UK) Ltd is authorised and regulated by 
the Financial Services Authority.

This footnote also confirms that this email message has been swept by 
MIMEsweeper for the presence of computer viruses.

**



RE: h:selectOneListBox bug

2005-09-20 Thread Cash, Jamie
There is no setter method as the list is generated, and cannot be set. Stack 
trace as follows:

java.lang.IllegalArgumentException: Conversion Error setting value ''{0}'' for 
''{1}''. 
at com.sun.faces.util.Util.getSelectItems(Util.java:628)
at 
com.sun.faces.renderkit.html_basic.MenuRenderer.getOptionNumber(MenuRenderer.java:488)
at 
com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:465)
at 
com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:430)
at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
at 
com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at 
javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:607)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544)
at 
com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
at 
org.apache.jsp.Login_jsp._jspx_meth_h_panelGrid_0(org.apache.jsp.Login_jsp:175)
at 
org.apache.jsp.Login_jsp._jspx_meth_h_form_0(org.apache.jsp.Login_jsp:127)
at org.apache.jsp.Login_jsp._jspService(org.apache.jsp.Login_jsp:80)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:602)
at 
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101)
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:137)
at 
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:758)
at 
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:890)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)
at 
org.apache.jsp.Template_jsp._jspx_meth_tiles_insert_3(org.apache.jsp.Template_jsp:384)
at 
org.apache.jsp.Template_jsp._jspx_meth_f_view_0(org.apache.jsp.Template_jsp:162)
at 
org.apache.jsp.Template_jsp._jspService(org.apache.jsp.Template_jsp:82)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at 
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
at 
org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:233)
at 
org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:219)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 

RE: h:selectOneListBox bug

2005-09-20 Thread Cash, Jamie
I have retried, but this time added a setter and still the same problem.

Setter as follows:

public void setSystemList(ListSelectItem systemList)
{
this.systemList = systemList;
}

-Original Message-
From: Cash, Jamie 
Sent: 20 September 2005 11:23
To: MyFaces Development
Subject: RE: h:selectOneListBox bug


There is no setter method as the list is generated, and cannot be set. Stack 
trace as follows:

java.lang.IllegalArgumentException: Conversion Error setting value ''{0}'' for 
''{1}''. 
at com.sun.faces.util.Util.getSelectItems(Util.java:628)
at 
com.sun.faces.renderkit.html_basic.MenuRenderer.getOptionNumber(MenuRenderer.java:488)
at 
com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:465)
at 
com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:430)
at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
at 
com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at 
javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:607)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544)
at 
com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
at 
org.apache.jsp.Login_jsp._jspx_meth_h_panelGrid_0(org.apache.jsp.Login_jsp:175)
at 
org.apache.jsp.Login_jsp._jspx_meth_h_form_0(org.apache.jsp.Login_jsp:127)
at org.apache.jsp.Login_jsp._jspService(org.apache.jsp.Login_jsp:80)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:602)
at 
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101)
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:137)
at 
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:758)
at 
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:890)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)
at 
org.apache.jsp.Template_jsp._jspx_meth_tiles_insert_3(org.apache.jsp.Template_jsp:384)
at 
org.apache.jsp.Template_jsp._jspx_meth_f_view_0(org.apache.jsp.Template_jsp:162)
at 
org.apache.jsp.Template_jsp._jspService(org.apache.jsp.Template_jsp:82)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at 
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
at 
org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:233

tomahawke SelectOneRadio in datatable no longer working

2005-09-20 Thread Cash, Jamie
The tomahawke selectOneRadio (t:selectOneRadio previously x:selectOneRadio) in 
a datatable no longer works correctly. On selection of an item and submission 
of the form a Validation Error is added to the messages.
This worked correctly in myfaces 1.0.9 but not in the last nightly build.

Below is a subset of my jsp that outputs the column:

h:column
  f:facet name=header
h:outputText value=#{bundle.label_select}/
  /f:facet
  t:selectOneRadio id=selectRadio forceId=true forceIdIndex=false 
required=true value=#{ClientSearchBean.selectedExtClientId}
f:selectItem itemValue=#{client.extClientId} itemLabel=/
  /t:selectOneRadio
/h:column

The 'value; points to a string value in the backing bean and the itemValue 
points to the same string value in the Client domain object, of which the table 
is driven from.

Regards

Jamie




__
I N T E R N A T I O N A L   F I N A N C I A L   D A T A  S E R V I C ES 
 
Jamie Cash
Architecture Group
IFDS House, St Nicholas Lane, Basildon, SS15 5FS
Tel: 01268 44 3739
email: [EMAIL PROTECTED]
___




INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
** N O T I C E *

This message and any attachments is intended only for the individual or company 
to which it is addressed and may contain
information which is privileged, confidential or prohibited from disclosure or 
unauthorised use. If the recipient of this
transmission is not the intended recipient, or the employee or agent 
responsible for delivering such materials to the
intended recipient, you are hereby notified that any use, any form of 
reproduction, dissemination, copying, disclosure, 
modification, distribution and/or publication of this e-mail message or its 
attachments other than by it's intended
recipient is strictly prohibited by the sender. If you have received it in 
error, please notify us immediately by 
telephone on the number above and destroy the message and all copies in your 
possession.

International Financial Data Services (UK) Ltd is authorised and regulated by 
the Financial Services Authority.

This footnote also confirms that this email message has been swept by 
MIMEsweeper for the presence of computer viruses.

**



Render null values in table as nbsb

2005-09-20 Thread Cash, Jamie
I wanted to add some code in the tomahawke column to render null and empty 
values as a nbsb, so that table cells do not collapse and still retain their 
borders if a null value is returned in the source data.
This will be the first time that I have changed the myfaces source code, and I 
require some assistance on where this change should be made

I could make the change in the render kit, but this will affect non html pages 
as well, and cannot make the change in HtmlTableRenderer as this uses the 
render kit to perform its rendering.

Could someone provide some assistance on where this change should be made?

Regards

Jamie

__
I N T E R N A T I O N A L   F I N A N C I A L   D A T A  S E R V I C ES 
 
Jamie Cash
Architecture Group
IFDS House, St Nicholas Lane, Basildon, SS15 5FS
Tel: 01268 44 3739
email: [EMAIL PROTECTED]
___




INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
** N O T I C E *

This message and any attachments is intended only for the individual or company 
to which it is addressed and may contain
information which is privileged, confidential or prohibited from disclosure or 
unauthorised use. If the recipient of this
transmission is not the intended recipient, or the employee or agent 
responsible for delivering such materials to the
intended recipient, you are hereby notified that any use, any form of 
reproduction, dissemination, copying, disclosure, 
modification, distribution and/or publication of this e-mail message or its 
attachments other than by it's intended
recipient is strictly prohibited by the sender. If you have received it in 
error, please notify us immediately by 
telephone on the number above and destroy the message and all copies in your 
possession.

International Financial Data Services (UK) Ltd is authorised and regulated by 
the Financial Services Authority.

This footnote also confirms that this email message has been swept by 
MIMEsweeper for the presence of computer viruses.

**



RE: Render null values in table as nbsb

2005-09-20 Thread Cash, Jamie
Thanks,

I have used the empty-cells:show; style property, and tested on firefox and IE.

Regards

Jamie

-Original Message-
From: Manfred Geiler [mailto:[EMAIL PROTECTED]
Sent: 20 September 2005 13:09
To: MyFaces Development
Subject: Re: Render null values in table as nbsb


Jamie,
HtmlTableRenderer is definitely not the correct place to apply this change.
A table renderer does nothing more than rendering it's children (or
let them render themselves) within the td tags.
So, more important is to look at what you actually want to render as
cells. Are you using h:outputText components within your table? You
could extend standard behaviour of the HtmlTextRenderer by using your
own renderer and output nbsp; instead of empty strings.

You can also try the CSS attribute empty-cells:show; for your table
(don't know if that works with all browsers).

-Manfred


2005/9/20, Cash, Jamie [EMAIL PROTECTED]:
 I wanted to add some code in the tomahawke column to render null and empty 
 values as a nbsb, so that table cells do not collapse and still retain their 
 borders if a null value is returned in the source data.
 This will be the first time that I have changed the myfaces source code, and 
 I require some assistance on where this change should be made
 
 I could make the change in the render kit, but this will affect non html 
 pages as well, and cannot make the change in HtmlTableRenderer as this uses 
 the render kit to perform its rendering.
 
 Could someone provide some assistance on where this change should be made?
 
 Regards
 
 Jamie
 
 __
 I N T E R N A T I O N A L   F I N A N C I A L   D A T A  S E R V I C 
 ES
 Jamie Cash
 Architecture Group
 IFDS House, St Nicholas Lane, Basildon, SS15 5FS
 Tel: 01268 44 3739
 email: [EMAIL PROTECTED]
 ___
 
 
 
 
 INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
 ** N O T I C E *
 
 This message and any attachments is intended only for the individual or 
 company to which it is addressed and may contain
 information which is privileged, confidential or prohibited from disclosure 
 or unauthorised use. If the recipient of this
 transmission is not the intended recipient, or the employee or agent 
 responsible for delivering such materials to the
 intended recipient, you are hereby notified that any use, any form of 
 reproduction, dissemination, copying, disclosure,
 modification, distribution and/or publication of this e-mail message or its 
 attachments other than by it's intended
 recipient is strictly prohibited by the sender. If you have received it in 
 error, please notify us immediately by
 telephone on the number above and destroy the message and all copies in your 
 possession.
 
 International Financial Data Services (UK) Ltd is authorised and regulated by 
 the Financial Services Authority.
 
 This footnote also confirms that this email message has been swept by 
 MIMEsweeper for the presence of computer viruses.
 
 **
 



INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
** N O T I C E *

This message and any attachments is intended only for the individual or company 
to which it is addressed and may contain
information which is privileged, confidential or prohibited from disclosure or 
unauthorised use. If the recipient of this
transmission is not the intended recipient, or the employee or agent 
responsible for delivering such materials to the
intended recipient, you are hereby notified that any use, any form of 
reproduction, dissemination, copying, disclosure, 
modification, distribution and/or publication of this e-mail message or its 
attachments other than by it's intended
recipient is strictly prohibited by the sender. If you have received it in 
error, please notify us immediately by 
telephone on the number above and destroy the message and all copies in your 
possession.

International Financial Data Services (UK) Ltd is authorised and regulated by 
the Financial Services Authority.

This footnote also confirms that this email message has been swept by 
MIMEsweeper for the presence of computer viruses.

**



RE: h:selectOneListBox bug

2005-09-20 Thread Cash, Jamie
Not intentionally, The only faces jar that I have deployed is myfaces-all.jar. 

-Original Message-
From: Mathias Brökelmann [mailto:[EMAIL PROTECTED]
Sent: 20 September 2005 13:57
To: MyFaces Development
Subject: Re: h:selectOneListBox bug


you are using Suns RI not myfaces.

2005/9/20, Cash, Jamie [EMAIL PROTECTED]:
 There is no setter method as the list is generated, and cannot be set. Stack 
 trace as follows:
 
 java.lang.IllegalArgumentException: Conversion Error setting value ''{0}'' 
 for ''{1}''.
 at com.sun.faces.util.Util.getSelectItems(Util.java:628)
 at 
 com.sun.faces.renderkit.html_basic.MenuRenderer.getOptionNumber(MenuRenderer.java:488)
 at 
 com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:465)
 at 
 com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:430)
 at 
 javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
 at 
 com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
 at 
 com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
 at 
 javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
 at 
 javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:607)
 at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544)
 at 
 com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
 at 
 org.apache.jsp.Login_jsp._jspx_meth_h_panelGrid_0(org.apache.jsp.Login_jsp:175)
 at 
 org.apache.jsp.Login_jsp._jspx_meth_h_form_0(org.apache.jsp.Login_jsp:127)
 at org.apache.jsp.Login_jsp._jspService(org.apache.jsp.Login_jsp:80)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
 at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
 at 
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
 at 
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
 at 
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
 at 
 org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:602)
 at 
 org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101)
 at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:137)
 at 
 org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:758)
 at 
 org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:890)
 at 
 org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)
 at 
 org.apache.jsp.Template_jsp._jspx_meth_tiles_insert_3(org.apache.jsp.Template_jsp:384)
 at 
 org.apache.jsp.Template_jsp._jspx_meth_f_view_0(org.apache.jsp.Template_jsp:162)
 at 
 org.apache.jsp.Template_jsp._jspService(org.apache.jsp.Template_jsp:82)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
 at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
 at 
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
 at 
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
 at 
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
 at 
 com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
 at 
 org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.dispatch

RE: h:selectOneListBox bug

2005-09-20 Thread Cash, Jamie
Thanks. I found the file and removed it, but nothing worked at all after that. 
The page appeared blank and there were no stacktraces.

Possibly some configuration errors somewhere!

Regards

Jamie

-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED]
Sent: 20 September 2005 14:32
To: MyFaces Development
Subject: Re: h:selectOneListBox bug


Well,

there is no 

package: com.sun.faces.util.Util.getSelectItems(Util.java:628)

in the myfaces-all.jar, so there needs to be a sun jar somewhere.
Maybe in the work directory of your app server?

regards,

Martin


On 9/20/05, Cash, Jamie [EMAIL PROTECTED] wrote:
 Not intentionally, The only faces jar that I have deployed is myfaces-all.jar.
 
 -Original Message-
 From: Mathias Brökelmann [mailto:[EMAIL PROTECTED]
 Sent: 20 September 2005 13:57
 To: MyFaces Development
 Subject: Re: h:selectOneListBox bug
 
 
 you are using Suns RI not myfaces.
 
 2005/9/20, Cash, Jamie [EMAIL PROTECTED]:
  There is no setter method as the list is generated, and cannot be set. 
  Stack trace as follows:
 
  java.lang.IllegalArgumentException: Conversion Error setting value ''{0}'' 
  for ''{1}''.
  at com.sun.faces.util.Util.getSelectItems(Util.java:628)
  at 
  com.sun.faces.renderkit.html_basic.MenuRenderer.getOptionNumber(MenuRenderer.java:488)
  at 
  com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:465)
  at 
  com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:430)
  at 
  javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
  at 
  com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
  at 
  com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
  at 
  javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
  at 
  javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:607)
  at 
  javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544)
  at 
  com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
  at 
  org.apache.jsp.Login_jsp._jspx_meth_h_panelGrid_0(org.apache.jsp.Login_jsp:175)
  at 
  org.apache.jsp.Login_jsp._jspx_meth_h_form_0(org.apache.jsp.Login_jsp:127)
  at org.apache.jsp.Login_jsp._jspService(org.apache.jsp.Login_jsp:80)
  at 
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  at 
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
  at 
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  at 
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  at 
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  at 
  org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
  at 
  org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
  at 
  org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
  at 
  org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
  at 
  org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:602)
  at 
  org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101)
  at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:137)
  at 
  org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:758)
  at 
  org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:890)
  at 
  org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)
  at 
  org.apache.jsp.Template_jsp._jspx_meth_tiles_insert_3(org.apache.jsp.Template_jsp:384)
  at 
  org.apache.jsp.Template_jsp._jspx_meth_f_view_0(org.apache.jsp.Template_jsp:162)
  at 
  org.apache.jsp.Template_jsp._jspService(org.apache.jsp.Template_jsp:82)
  at 
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  at 
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
  at 
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  at 
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter

RE: h:selectOneListBox bug

2005-09-20 Thread Cash, Jamie
I'm running on JBoss 4.0.2 RC1 which uses tomcat version 5.5.

-Original Message-
From: Mathias Brökelmann [mailto:[EMAIL PROTECTED]
Sent: 20 September 2005 15:53
To: MyFaces Development
Subject: Re: h:selectOneListBox bug


it could be an issue with the tomcat version. Which version of tomcat
do you use?

2005/9/20, Cash, Jamie [EMAIL PROTECTED]:
 Thanks. I found the file and removed it, but nothing worked at all after 
 that. The page appeared blank and there were no stacktraces.
 
 Possibly some configuration errors somewhere!
 
 Regards
 
 Jamie
 
 -Original Message-
 From: Martin Marinschek [mailto:[EMAIL PROTECTED]
 Sent: 20 September 2005 14:32
 To: MyFaces Development
 Subject: Re: h:selectOneListBox bug
 
 
 Well,
 
 there is no
 
 package: com.sun.faces.util.Util.getSelectItems(Util.java:628)
 
 in the myfaces-all.jar, so there needs to be a sun jar somewhere.
 Maybe in the work directory of your app server?
 
 regards,
 
 Martin
 
 
 On 9/20/05, Cash, Jamie [EMAIL PROTECTED] wrote:
  Not intentionally, The only faces jar that I have deployed is 
  myfaces-all.jar.
 
  -Original Message-
  From: Mathias Brökelmann [mailto:[EMAIL PROTECTED]
  Sent: 20 September 2005 13:57
  To: MyFaces Development
  Subject: Re: h:selectOneListBox bug
 
 
  you are using Suns RI not myfaces.
 
  2005/9/20, Cash, Jamie [EMAIL PROTECTED]:
   There is no setter method as the list is generated, and cannot be set. 
   Stack trace as follows:
  
   java.lang.IllegalArgumentException: Conversion Error setting value 
   ''{0}'' for ''{1}''.
   at com.sun.faces.util.Util.getSelectItems(Util.java:628)
   at 
   com.sun.faces.renderkit.html_basic.MenuRenderer.getOptionNumber(MenuRenderer.java:488)
   at 
   com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:465)
   at 
   com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:430)
   at 
   javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
   at 
   com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
   at 
   com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
   at 
   javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
   at 
   javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:607)
   at 
   javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544)
   at 
   com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
   at 
   org.apache.jsp.Login_jsp._jspx_meth_h_panelGrid_0(org.apache.jsp.Login_jsp:175)
   at 
   org.apache.jsp.Login_jsp._jspx_meth_h_form_0(org.apache.jsp.Login_jsp:127)
   at 
   org.apache.jsp.Login_jsp._jspService(org.apache.jsp.Login_jsp:80)
   at 
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at 
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
   at 
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
   at 
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at 
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at 
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at 
   org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
   at 
   org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
   at 
   org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
   at 
   org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
   at 
   org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:602)
   at 
   org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101)
   at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:137)
   at 
   org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:758)
   at 
   org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:890)
   at 
   org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)
   at 
   org.apache.jsp.Template_jsp._jspx_meth_tiles_insert_3(org.apache.jsp.Template_jsp:384)
   at 
   org.apache.jsp.Template_jsp._jspx_meth_f_view_0(org.apache.jsp.Template_jsp:162)
   at 
   org.apache.jsp.Template_jsp._jspService(org.apache.jsp.Template_jsp:82)
   at 
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99

RE: tomahawke SelectOneRadio in datatable no longer working

2005-09-20 Thread Cash, Jamie
Further details.

The detail of the message added to messages is:

{0}: Value is not a valid option.

-Original Message-
From: Cash, Jamie 
Sent: 20 September 2005 12:19
To: dev@myfaces.apache.org
Subject: tomahawke SelectOneRadio in datatable no longer working


The tomahawke selectOneRadio (t:selectOneRadio previously x:selectOneRadio) in 
a datatable no longer works correctly. On selection of an item and submission 
of the form a Validation Error is added to the messages.
This worked correctly in myfaces 1.0.9 but not in the last nightly build.

Below is a subset of my jsp that outputs the column:

h:column
  f:facet name=header
h:outputText value=#{bundle.label_select}/
  /f:facet
  t:selectOneRadio id=selectRadio forceId=true forceIdIndex=false 
required=true value=#{ClientSearchBean.selectedExtClientId}
f:selectItem itemValue=#{client.extClientId} itemLabel=/
  /t:selectOneRadio
/h:column

The 'value; points to a string value in the backing bean and the itemValue 
points to the same string value in the Client domain object, of which the table 
is driven from.

Regards

Jamie




__
I N T E R N A T I O N A L   F I N A N C I A L   D A T A  S E R V I C ES 
Jamie Cash
Architecture Group
IFDS House, St Nicholas Lane, Basildon, SS15 5FS
Tel: 01268 44 3739
email: [EMAIL PROTECTED]
___




INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
** N O T I C E *

This message and any attachments is intended only for the individual or company 
to which it is addressed and may contain
information which is privileged, confidential or prohibited from disclosure or 
unauthorised use. If the recipient of this
transmission is not the intended recipient, or the employee or agent 
responsible for delivering such materials to the
intended recipient, you are hereby notified that any use, any form of 
reproduction, dissemination, copying, disclosure, 
modification, distribution and/or publication of this e-mail message or its 
attachments other than by it's intended
recipient is strictly prohibited by the sender. If you have received it in 
error, please notify us immediately by 
telephone on the number above and destroy the message and all copies in your 
possession.

International Financial Data Services (UK) Ltd is authorised and regulated by 
the Financial Services Authority.

This footnote also confirms that this email message has been swept by 
MIMEsweeper for the presence of computer viruses.

**



INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
** N O T I C E *

This message and any attachments is intended only for the individual or company 
to which it is addressed and may contain
information which is privileged, confidential or prohibited from disclosure or 
unauthorised use. If the recipient of this
transmission is not the intended recipient, or the employee or agent 
responsible for delivering such materials to the
intended recipient, you are hereby notified that any use, any form of 
reproduction, dissemination, copying, disclosure, 
modification, distribution and/or publication of this e-mail message or its 
attachments other than by it's intended
recipient is strictly prohibited by the sender. If you have received it in 
error, please notify us immediately by 
telephone on the number above and destroy the message and all copies in your 
possession.

International Financial Data Services (UK) Ltd is authorised and regulated by 
the Financial Services Authority.

This footnote also confirms that this email message has been swept by 
MIMEsweeper for the presence of computer viruses.

**