[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-19 Thread ffischer
Stephan, thanks a lot for your response. I already have had the 
jboss-cache-jdk50.jar within the right place in the ear. It doesn't work for 
me. But meanwhile I have learned a lot about converters and the selectItem 
stuff, so I wrote something that works for me.

Best regards,

Frank

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987150#3987150

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987150
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-22 Thread petemuir
New version.

I'd really appreciate feedback on anyone using the tags in JSP (I don't use JSP 
normally).

http://wiki.jboss.org/wiki/attach?page=SeamSelectItemsNewDesign%2Fselectitems-1.1.1beta2.zip
http://wiki.jboss.org/wiki/attach?page=SeamSelectItemsNewDesign

*  You really don't need to include the caching jars if you don't use caching
*  Complete support for JSP - si:selectItems, si:convertEntity, si:convertEnum 
are now available and work as in facelets. Replicated the example as a JSP 
example to show it all working
*  Fixed bug where si:selectItems didn't work if used inside a rendertime 
iterator (e.g. dataTable, ui:repeat)
*  Split into two jars, normally you can place both in WEB-INF/lib

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987870#3987870

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987870
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-22 Thread petemuir
Jason,

I'm not sure whats going on there I'm afraid.  I have no problems redeploying 
the examples and the two projects in which I use the SeamSelectItems myself.  
What versions of Seam/JBoss AS are you using?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987871#3987871

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987871
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-10-27 Thread petemuir
I've put up a version that works with 1.1BETA1

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981261#3981261

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981261
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-06 Thread petemuir
I've put up a version 
http://wiki.jboss.org/wiki/attach?page=SeamSelectItems%2Fselectitems-1.1.0rc2.zip
 that allows you to cache the outjected selectitems.  It uses pojocache, and 
requires you to use a 



rather than f:selectItems.

N.B. The config class name has changed to 
org.jboss.seam.selectitems.SelectItemsConfig

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983555#3983555

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983555
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-07 Thread forumer
I have posted this in more details at jroller.com as well.

selectItems 1.0rc4 built with JBoss-Seam-1.0.1.GA and deployed on 
JBoss-4.0.4.CR2 is not working! I am getting the following error - a strange 
Statful bean name!

I'd appreciate any help in getting this working.

Thanks


  | javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean: 
5c4oa3-xkn3ck-eu9347cz-1-eu958wrp-9
  | 

Bean is showing up in JMX console as:


  |   +- jboss-seam-selectitems (class: org.jnp.interfaces.NamingContext)
  |   |   +- ClientActionBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- localStatefulProxyFactory (class: 
org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
  |   |   |   +- local (class: java.lang.Object)
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983992#3983992

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983992
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-07 Thread forumer
After I annotated ClientActionBean with:


  | @Local ({ClientAction.class})
  | @LocalBinding (jndiBinding="ClientActionBean/local")
  | 

I am now getting a less "bizarre" error. Hopefully, this gives you more clue.


  | 
  | 20:47:06,837 INFO  [MyfacesConfig] No context init parameter 
'org.apache.myfaces.AUTO_SCROLL' found, using default value false
  | 20:47:06,837 DEBUG [SeamVariableResolver] resolving name: client
  | 20:47:06,837 DEBUG [Contexts] found in conversation context: client
  | 20:47:06,837 DEBUG [SeamVariableResolver] resolved name to seam component
  | 20:47:06,837 DEBUG [SeamVariableResolver] resolving name: client
  | 20:47:06,837 DEBUG [Contexts] found in conversation context: client
  | 20:47:06,837 DEBUG [SeamVariableResolver] resolved name to seam component
  | 20:47:06,837 DEBUG [SeamVariableResolver] resolving name: client
  | 20:47:06,837 DEBUG [Contexts] found in conversation context: client
  | 20:47:06,837 DEBUG [SeamVariableResolver] resolved name to seam component
  | 20:47:06,847 DEBUG [SeamVariableResolver] resolving name: clientTypes
  | 20:47:06,847 DEBUG [Component] instantiating Seam component: clientAction
  | 20:47:06,847 DEBUG [Naming] JNDI InitialContext 
properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
 java.naming.factory.url.pkgs=org.jboss.naming:org.j
  | np.interfaces}
  | 20:47:06,857 ERROR [STDERR] Nov 7, 2006 8:47:06 PM 
com.sun.facelets.FaceletViewHandler handleRenderException
  | SEVERE: Error Rendering View[/selectitems.xhtml]
  | org.jboss.seam.InstantiationException: Could not instantiate Seam 
component: clientAction
  | at org.jboss.seam.Component.newInstance(Component.java:735)
  | at org.jboss.seam.Component.newInstance(Component.java:1308)
  | at org.jboss.seam.Component.getInstance(Component.java:1263)
  | at org.jboss.seam.Component.getInstance(Component.java:1246)
  | at 
org.jboss.seam.Component.getInstanceFromFactory(Component.java:1292)
  | at org.jboss.seam.Component.getInstance(Component.java:1260)
  | at org.jboss.seam.Component.getInstance(Component.java:1246)
  | at 
org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
  | at 
com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
  | at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
  | at 
com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
  | at 
com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
  | at 
com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
  | at 
javax.faces.component.UISelectItems.getValue(UISelectItems.java:55)
  | at 
org.apache.myfaces.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:103)
  | at 
org.apache.myfaces.renderkit.RendererUtils.internalGetSelectItemList(RendererUtils.java:485)
  | at 
org.apache.myfaces.renderkit.RendererUtils.getSelectItemList(RendererUtils.java:461)
  | at 
org.apache.myfaces.renderkit.html.HtmlRendererUtils.internalRenderSelect(HtmlRendererUtils.java:272)
  | at 
org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderListbox(HtmlRendererUtils.java:235)
  | at 
org.apache.myfaces.renderkit.html.HtmlListboxRendererBase.encodeEnd(HtmlListboxRendererBase.java:73)
  | at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983996#3983996

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983996
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-08 Thread petemuir
As suggested elsewhere, I suggest you use a supported JBossAS/Seam config as 
recommended by the getting started guide.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984049#3984049

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984049
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-08 Thread forumer
Hi Peter,

Thanks for your reply. I am having a little better luck with 1.1.0rc2. But 
looks like "em" is coming up NULL. Must be something I am not configuring 
right. I looked at components.xml but can't figure out what to modify, if 
anything. FYI, I use "em" annotated with @PersistenceContext in my other 
applications and it works. You must have some other way of achieving the same 
result.

BTW, JBoss-4.0.4.CR2 is installed with JEMS installer and ejb3 option.

Here is debug-level stack-trace. I am looking forward to your reply... Thanks


  | ce'
  | 04:17:39,889 INFO  [EARDeployer] Init J2EE application: 
file:/C:/jboss-4.0.4.CR2/server/all/deploy/jboss-seam-selectitems.ear
  | 04:17:42,783 INFO  [Ejb3Deployment] EJB3 deployment time took: 40
  | 04:17:42,783 INFO  [JmxKernelAbstraction] installing MBean: 
persistence.units:ear=jboss-seam-selectitems.ear,jar=jboss-seam-selectitems.jar,unitName=selectItemsDatabase
 with depend
  | encies:
  | 04:17:42,783 INFO  [JmxKernelAbstraction]   
jboss.jca:name=selectItemsDatasource,service=ManagedConnectionFactory
  | 04:17:42,793 INFO  [Ejb3Configuration] Processing PersistenceUnitInfo [
  | name: selectItemsDatabase
  | ...]
  | 04:17:42,793 INFO  [Ejb3Configuration] found EJB3 Entity bean: 
org.jboss.seam.example.selectitems.Branch
  | 04:17:42,803 INFO  [Ejb3Configuration] found EJB3 Entity bean: 
org.jboss.seam.example.selectitems.Client
  | 04:17:42,803 INFO  [Ejb3Configuration] found EJB3 Entity bean: 
org.jboss.seam.example.selectitems.ClientCategory
  | 04:17:42,803 INFO  [Ejb3Configuration] found EJB3 Entity bean: 
org.jboss.seam.example.selectitems.ClientType
  | 04:17:42,803 INFO  [AnnotationBinder] Binding entity from annotated class: 
org.jboss.seam.example.selectitems.Branch
  | 04:17:42,803 INFO  [EntityBinder] Bind entity 
org.jboss.seam.example.selectitems.Branch on table Branch
  | 04:17:42,803 INFO  [AnnotationBinder] Binding entity from annotated class: 
org.jboss.seam.example.selectitems.Client
  | 04:17:42,813 INFO  [EntityBinder] Bind entity 
org.jboss.seam.example.selectitems.Client on table Client
  | 04:17:42,823 INFO  [AnnotationBinder] Binding entity from annotated class: 
org.jboss.seam.example.selectitems.ClientCategory
  | 04:17:42,823 INFO  [EntityBinder] Bind entity 
org.jboss.seam.example.selectitems.ClientCategory on table ClientCategory
  | 04:17:42,823 INFO  [AnnotationBinder] Binding entity from annotated class: 
org.jboss.seam.example.selectitems.ClientType
  | 04:17:42,823 INFO  [EntityBinder] Bind entity 
org.jboss.seam.example.selectitems.ClientType on table ClientType
  | 04:17:42,843 INFO  [ConnectionProviderFactory] Initializing connection 
provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
  | 04:17:42,843 INFO  [InjectedDataSourceConnectionProvider] Using provided 
datasource
  | 04:17:42,854 INFO  [SettingsFactory] RDBMS: HSQL Database Engine, version: 
1.8.0
  | 04:17:42,854 INFO  [SettingsFactory] JDBC driver: HSQL Database Engine 
Driver, version: 1.8.0
  | 04:17:42,854 INFO  [Dialect] Using dialect: 
org.hibernate.dialect.HSQLDialect
  | 04:17:42,854 INFO  [TransactionFactoryFactory] Transaction strategy: 
org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
  | 04:17:42,854 INFO  [TransactionManagerLookupFactory] instantiating 
TransactionManagerLookup: 
org.hibernate.transaction.JBossTransactionManagerLookup
  | 04:17:42,854 INFO  [TransactionManagerLookupFactory] instantiated 
TransactionManagerLookup
  | 04:17:42,854 INFO  [SettingsFactory] Automatic flush during 
beforeCompletion(): disabled
  | 04:17:42,854 INFO  [SettingsFactory] Automatic session close at end of 
transaction: disabled
  | 04:17:42,854 INFO  [SettingsFactory] JDBC batch size: 15
  | 04:17:42,854 INFO  [SettingsFactory] JDBC batch updates for versioned data: 
disabled
  | 04:17:42,854 INFO  [SettingsFactory] Scrollable result sets: enabled
  | 04:17:42,854 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
  | 04:17:42,854 INFO  [SettingsFactory] Connection release mode: auto
  | 04:17:42,854 INFO  [SettingsFactory] Default batch fetch size: 1
  | 04:17:42,854 INFO  [SettingsFactory] Generate SQL with comments: disabled
  | 04:17:42,854 INFO  [SettingsFactory] Order SQL updates by primary key: 
disabled
  | 04:17:42,854 INFO  [SettingsFactory] Query translator: 
org.hibernate.hql.ast.ASTQueryTranslatorFactory
  | 04:17:42,854 INFO  [ASTQueryTranslatorFactory] Using 
ASTQueryTranslatorFactory
  | 04:17:42,854 INFO  [SettingsFactory] Query language substitutions: {}
  | 04:17:42,854 INFO  [SettingsFactory] Second-level cache: enabled
  | 04:17:42,864 INFO  [SettingsFactory] Query cache: disabled
  | 04:17:42,864 INFO  [SettingsFactory] Cache provider: 
org.hibernate.cache.HashtableCacheProvider
  | 04:17:42,864 INFO  [SettingsFactory] Optimize cache for minimal puts: 
disabled
  | 04:17:42,864 INFO  [SettingsFactory] Structured second-level cache entries: 
disabled
  | 04:17:42

[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-08 Thread petemuir
In the example the EntityManager is a Seam Managed Persistence Context so is 
injected using @In.  If you look at the getting started guide, you'll see that 
it tells you to use JBoss 4.0.4.GA not 4.0.4.CR2.  I'm not going to waste my 
time sorting out why the code doesn't work a unsupported platform.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984163#3984163

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984163
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-08 Thread forumer
Hi Peter,

Now I understand a bit more about JBoss versions! I understand that you don't 
want to waste time supporting a non-GA version. Unfortunately, we are in 
production with CR2 and will certainly be moving to GA as soon as we can.

Your implementation is very crucial to my application. So in an attempt to make 
it work I have made a few adjustments to a point where I may have it almost 
working. I'd appreciate if you might have a quick insight into what may be 
wrong. Please feel free to ignore this if it will take more than a quick tip.

Even though the "factory" variables are being processed out of the database as 
evidenced by log statements as to the number of items for each of the three. 
But when it comes to resolving #{discounts}, #{branches}, and #{clientTypes} 
are coming out as NULL:


  | 
  | 7:44:44,769 INFO  [STDOUT] Branch list has 3 entries
  | .
  | .
  | .
  | 17:44:44,789 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
Servlet threw exception
  | java.lang.IllegalArgumentException: Value binding '#{clientTypes}'of 
UISelectItems with component-path {Component-Path : [Class: 
javax.faces.component.UIViewRoot,ViewId: /selectite
  | ms.xhtml][Class: javax.faces.component.html.HtmlForm,Id: _id3][Class: 
javax.faces.component.html.HtmlPanelGrid,Id: _id4][Class: 
javax.faces.component.html.HtmlPanelGroup,Id: _id18]
  | [Class: javax.faces.component.html.HtmlSelectOneListbox,Id: 
client_clientType][Class: javax.faces.component.UISelectItems,Id: _id19]} does 
not reference an Object of type SelectIte
  | m, SelectItem[], Collection or Map but of type : null
  | at 
org.apache.myfaces.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:142)
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984364#3984364

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984364
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-09 Thread petemuir
For some reason the oujection failed.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984446#3984446

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984446
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-10 Thread petemuir
http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamSelectItemsNewDesign

I've redesigned SeamSelectItems such that rather than using the @SelectItems 
annotation you just outject.  The magic now occurs completely in ui:selectItems 
(which only works with Facelets I'm afraid).   @SelectItems is still there if 
you are tied to JSP.

e.g.

@Entity public class User {
  | 
  |@Id Integer id;
  |String name;
  |
  |//getters and setters
  | }


public class ActionBean {
  | 
  | ...
  | 
  | @Factory("users") 
  | public List getUsers() {
  |   List users = em.createQuery("select u from User").getResultsList();
  |return users;
  | }


  |
  | 

I much prefer this design - it seems much simpler to use to me.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984935#3984935

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984935
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-10 Thread cavani
on application.xml:


  | 
  | selectitems-1.1.0rc3.jar
  | 
  | 

should be ... 1.1.1beta1

Thanks,

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984985#3984985

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984985
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-10 Thread petemuir
Thanks

I've fixed the example build file properly so I don't forget this in the future 
:)

I've also fixed another bug with the example which I missed first time around.

Still the same version no

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984989#3984989

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984989
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-12 Thread sbublava
One minor glitch: SelectItemsComponentHandler imports 
org.jboss.cache.CacheException, which causes a java.lang.NoClassDefFoundError 
exception when Facelets loads the tag library unless JBoss Cache is available.

Maybe could change the catch clauses to Exception or at least mention this 
requirement in the documentation.

Thanks,
Stephan


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985318#3985318

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985318
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-13 Thread petemuir
Thanks.  I'm reworking the si:selectItems component so that it works with JSP 
as well as facelets.  I'll make sure to remove that import in the next release.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985353#3985353

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985353
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-13 Thread fonseca
Hello Peter,

I'm having a few troubles using your component, could you please help me out? 
I'm using the 1.1.1beta1 release, and my problem arises from using the 
following jsf structure (I'll filter out everything unimportant):


  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  | 

I understand if this code appears a bit unusual, the point is to have both 
viewing and editing on the same table. The 'edit' method will, among a few 
other things, set the seam context variable 'index' to the position in the list 
of the selected item, as to have the second clause 'rendered' return true so to 
show the selectbox.

I've been working with such pattern, and it behaved nicely using f:selectItems 
and binding the values to strings. Upon switching to si:selectItems, however, I 
now get the following error as soon as entering the page:


  | javax.faces.el.PropertyNotFoundException: /WEB-INF/test.xhtml @50,118 
value="#{ current.somefield }": Target Unreachable, identifier 'current' 
resolved to null
  | at 
com.sun.facelets.el.LegacyValueBinding.getType(LegacyValueBinding.java:96)
  | at 
org.jboss.seam.selectitems.jsf.SelectItemsComponentHandler.addConverters(SelectItemsComponentHandler.java:64)
  | at 
org.jboss.seam.selectitems.jsf.SelectItemsComponentHandler.onComponentCreated(SelectItemsComponentHandler.java:237)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:161)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.j
  | ...
  | 

The outjected object 'current' is set only after the 'edit' method is invoked. 
So it makes sense that such error would occur if I was trying to show the combo 
upon first entering the page. Note, though, that the 'rendered' clause will 
return false in this occasion - i only want to see the combo after calling 
'edit'. It seems si:selectItems attempts to evaluate the value of my 
h:selectOneMenu, whether or not it should be rendered, and it ends up breaking 
the code. Is there any way to achieve the behavior I want?

Much obliged,
Luis


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985462#3985462

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985462
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-13 Thread petemuir
Hi Luis

Thanks for the feedback.  I discovered a similar problem when putting a 
si:selectitems in a datatable [1].  As I mentioned above I've been further 
refactoring the code to support JSP as well as facelets - a side of effect of 
this refactoring is that it (for me) solves the problem [2].  I hope to put out 
the new code in a couple of days time.

[1] In beta1 the handler executes the parent's value binding so that it can try 
to guess which converter to attach.  I put this code in onComponentCreated, 
which, if you are using a dataTable/ui:repeat is before the iteration variable 
is available.

[2] In the refactored version the work is done when the value binding is 
executed hence the problem does not arise.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985496#3985496

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985496
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-16 Thread ffischer
"sbublava" wrote : One minor glitch: SelectItemsComponentHandler imports 
org.jboss.cache.CacheException, which causes a java.lang.NoClassDefFoundError 
exception when Facelets loads the tag library unless JBoss Cache is available.
  | 
  | Maybe could change the catch clauses to Exception or at least mention this 
requirement in the documentation.
  | 
  | Thanks,
  | Stephan
  | 

I have the exact same problem, but I can't make JBoss Cache available. How can 
I do this?

Regards, 
Frank

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986627#3986627

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986627
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-16 Thread petemuir
I'm afraid I haven't had time to put out a new version with this bug fixed.  I 
need to find some time to test the changes I've made.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986643#3986643

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986643
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-16 Thread supernovasoftware.com
I integrated the selectitems-1.1.0rc2 into my project and it works great, but 
now I must restart jboss every time instead of being able to redeploy my 
application.

I get the following exception.  Any assistance would be greatly appreciated.


  | 15:34:58,609 ERROR [STDERR] Nov 16, 2006 3:34:58 PM 
com.sun.facelets.FaceletViewHandler handleRenderException
  | SEVERE: Error Rendering View[/inventory/dos/transaction/search/form.xhtml]
  | com.sun.facelets.tag.TagAttributeException: 
/WEB-INF/template/items/dos/transaction/search/form.xhtml @18,93 
entityClass="pipetracker.model.state.TransactionType" object is not an instance 
of declaring clas
  | s
  | at 
com.sun.facelets.tag.BeanPropertyTagRule$LiteralPropertyMetadata.applyMetadata(BeanPropertyTagRule.java:53)
  | at 
com.sun.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:36)
  | at 
com.sun.facelets.tag.MetaTagHandler.setAttributes(MetaTagHandler.java:62)
  | at 
com.sun.facelets.tag.jsf.ConvertHandler.apply(ConvertHandler.java:116)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109)
  | at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:119)
  | at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
  | at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
  | at 
com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:60)
  | at 
com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
  | at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
  | at 
com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:306)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:279)
  | at 
com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:119)
  | at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
  | at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
  | at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
  | at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
  | at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
  | at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
  | at

[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)

2006-11-16 Thread sbublava
"ffischer" wrote : 
  | I have the exact same problem, but I can't make JBoss Cache available. How 
can I do this?
  | 

Download JBoss Cache 1.4.0.SP1 from 
http://labs.jboss.com/portal/jbosscache/download, and add 
lib-50/jboss-cache-jdk50.jar to your EAR file. That should be all (at least I 
can't remember doing anything else...)

Thanks,
Stephan


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986749#3986749

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986749
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user