I do preprocessing of lists with @Transient. It works quite well. I also use
maps that I add extra objects to to hande the case where some of then are not
persisted and I add an empty one under a different key in the map if there is
none found.
View the original post :
http://www.jboss.com/
How about tweaked out with facelets custom tags.
Date field calendar components.
Buiilt in message display next to the field.
Something that can get you started with something decent, but still highly
customizeable before and after generation.
View the original post :
http://www.jboss.com/in
How about if this must be controlled by components.xml, which I agree with,
that Seam throw an error if there are multiple components with the same name?
If there is not a deterministic intuitive order that they will be loaded then I
think overriding in the componets.xml should be mandatory for
I would rather not leave off this annotation.
It would be the default for many of the applications that would use the class.
If I leave it off I would have to put it in every components.xml for every
application that used this class instead of the few cases that need an
overridding component.
What do you think about a configuration in components.xml that would force a
component to be used if declared there?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955420#3955420
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=r
Please define new. If there are two components with the same name are deployed
in the same ear which is considered new?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955413#3955413
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mo
I only made it work for the Object strategy, because that is all I am using
currently.
I also did consider adding the object myself and this might be better, but less
automatic.
I also thought that the message will not be internationalized.
For my use case this does not matter currently, but f
I added a jira issue as suggested.
http://jira.jboss.org/jira/browse/JBSEAM-293
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955358#3955358
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955358
Using Tomcat but nee
I do not currenly want to do this, but in the future I might.
For example what if I have a jar that includes an assortment of SLSB, SFSB, an
and entites with @Name that gives a unit of functionality to my application for
user and role management.
I might want to drop this jar into another ear f
I do see the value it that. Thx for the reply.
It was in fact a user component that I was unintentionally overriding.
The results were not deterministic. On redeploy it seemed that one was being
set, but on restart of the app server the one I was trying to use was being
looked up.
So if I ha
Is there any reason that two seam components should be able to have the same
name.
This has bitten me before when I named to components the same by accident.
This produced errors because the wrong component was being looked up sometimes
since they both had the same name.
Is there some setting
This is what I am using now. Every Entity in my project has an id named id
that is a Long. So all I have to do is add the interface Idable to the entity.
There is no doubt a better way. With discussions like this we can find an
optimal technique that everyone can easily use with minimal setu
I tweaked your wrap method to add some extra functionality.
I added the following annotation property to SelectItems.
|/**
| * If specified along with Strategy.OBJECT, and new
| * object with the specified empty lable will be added.
| *
| * @return The method
I was aware there was a way to remove that, but never looked into it.
I was able to clean up over 75 SLSB an SFSB. Thx for the tip.
What are your thoughts on a slick converter. I am using one that forces me to
make my entites implement an interface.
Not a big problem, but I am looking for a s
One more time. Than you Jim. I cleaned it up even more. I cannot believe how
easy it is to use SelectItems now. Your code is really clear and easy to
follow. I did have it working, but now it is cake.
:-) :+) :~)
| @Name("selector")
| @Stateless
|
This is not it. I assumed that mine had a form around it, but it did not. I
added one just to see and it still works perfectly.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954960#3954960
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=p
I teaked it a bit to make it a SFSB and pull a list of objects. For anyone
else that tries this do not put valueMethod="???" if you change the value
stragety to valueStrategy = SelectItems.Strategy.OBJECT.
I thought for sure I needed this, but errors occur after you add the converter.
It kept
Thanks again Jim. I will look into it. Hopefully this type of functionality
will be added to Seam sometime soon.
Everyone needs dropdowns. :-} And using them should be a trivial matter.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954937#3954937
Reply t
Thanks Captain. I will be looking for it.
You really seem to know your shiz.
Do you have any suggestion for a solution to the following unrelated problem?
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=85986
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewt
I apologize for so many posts, but I feel my usecase may help someone to
provide me with a solution, and this does seem like something that others
either would desire or have already implemented.
In my application I provide a list of available items that can be committed to
a work order for a m
I tried the following, but I get the value must be between 0 and 0. I am
assuming the you are correct an the el is being ignored.
In my opinion this should be a nobrainer. Maybe I am overlooking some obvious
solution.
Has anyone else attempted to do this?
|
|
View
Have a look at my post on a different matter.
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=85986
I was using an inner class like in the DVD Store example and passing the
entitymanager to the constructor.
I used @PersistenceContext to inject the EntityManager into the SLSB.
View the
Can I pass in an object?
I switched to Validator an the code is way cleaner. See below. I was able to
remove the inner class which I did not like.
The only side effect that I am not fond of is that JSF intercepts the
validation if something other than a number is entered.
Before my message w
Thank you very much for your response.
I always share any success I have. These forums are you vital to my progress,
and I feel the responsibility to post my results in order to help others.
I am also posting on the facelets list. As far as JSF stuff goes they provide
awesome answers there.
I am trying to validate a list of entry by using the EntityManager to query the
database to check limits. I can also see myself using this for a list of
tracking numbers like on UPS as well. For each I would like to hit the DB and
see if it meets my criteria and give a meaninful message to the
I would like for the list to be able pulled from a query so I that I can
control which entities are selected, the description, label, and in what order
they appear.
I do not mind putting annotation and or making my enties implement specific
interfaces.
I have not tried this, but maybe this cou
Is there any example of using these two together?
I feel like I am jumping through hoops just to display a dropdown. Everything
else in seam is a breeze.
I know @DataBinder was added to give this kind of functionality, but a clear
example would be greatly appreciated.
This is the type of exam
I have jscook menu working with no problems. Put tomahawk in the following
directory.
default\deploy\jbossweb-tomcat55.sar\jsf-libs
It does not need to be in the lib or ear.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954684#3954684
Reply to the post :
I doubt your problem is version related, but I am curious why people are still
using CR3 when GA 1.0.1 is out.
More likely the table type you are selecting in MySQL. If I remember correctly
I had this problem before I switched to PostgreSQL.
MyISAM which is the default table type does not supp
How can I use my own log format like the following found at
http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html
| %a - Remote IP address
| %A - Local IP address
| %b - Bytes sent, excluding HTTP headers, or '-' if zero
| %B - Bytes sent, excluding HTTP headers
| %h - Remote
See http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949140#3949140
for a solution.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949644#3949644
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949644
___
| private Long id;
| @Id @GeneratedValue( strategy=GenerationType.SEQUENCE,
generator="seq_access")
| @SequenceGenerator(name="seq_access", sequenceName="seq_access",
allocationSize=1)
| public Long getId() { return this.id; }
| public void setId(Long id) { this.
without the allocationSize this does not work with the latest release.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949220#3949220
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949220
__
Actually some other strategy is used if this is left out.
For example one my sequence was at 18, but without the allocation size
specified is was getting numbers close to 3000 and not incrementing my sequence
at all.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewto
I am using the following with PostgreSQL 8.1.3
private byte[] document;
| public byte[] getDocument() { return document; }
| public void setDocument(byte[] document) { this.document = document; }
Is the only advantage of @Lob database portability?
View the original post :
htt
Thank you Emmanuel. The following does in fact work for me.
private Long id;
| @GeneratedValue(strategy = GenerationType.SEQUENCE, generator =
"seq_coupling_spec")
| @Id
| @SequenceGenerator(name = "seq_coupling_spec", sequenceName =
"seq_coupling_spec", allocationSize=1)
| pu
Thanks Max. I do believe that was the fastest response ever.
You did say currently.
Are there any plans to make this more automatic?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948529#3948529
Reply to the post :
http://www.jboss.com/index.html?module=b
I am able to do queries in Hibernate tools, but I have to explicitly declare
each mapped class in my hibernate.cfg.xml file.
|
|
Is this necessary? Is there any way that by including the jar containing my
model these classes can automatically be loaded.
I stripped this list out
The following workaround from JIRA worked.
| @Entity
| @Table(name="t_size")
| @GenericGenerator(name="seq_size", strategy = "sequence",
| parameters = { @Parameter(name="sequence",
value="seq_size") } )
| public class Size implements Serializable {
|
|
I just found the JIRA issue for this which has a workaround.
http://jira.jboss.com/jira/browse/EJBTHREE-597
Could someone please comment on the status of this issue?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948161#3948161
Reply to the post :
http://
I am using sequences to generate all of my pks using PostgreSQL 8.1.3. This
was working fine until I upgraded to 4.0.4.GA from 4.0.4.CR2.
Now none of my sequences are not working on some 70+ entities.
They are being assiged from some other source. Probably the default stragety.
After restarti
I am using the GenericDAO pattern so each entity has its own DAO. I am using
@EJB throughout my SLSBs.
When I upgraded to 4.0.4.GA from 4.0.4.CR2 any beans that had a circular
reference fail to deploy.
If A injects B and B injects A I cannot deploy.
I wondered if this would cause a problem wh
There are numerous example apps of varing complexity and functionality. Are
they broken?
They help me quite a bit when I was getting started.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946631#3946631
Reply to the post :
http://www.jboss.com/index.html?
I have a SFSB that contains the following:
|
| @Stateful
| @Scope(EVENT)
| @Name("listItemDetail")
| @Interceptors(SeamInterceptor.class)
| public class ItemDetailListBean implements Serializable, ItemDetailList {
| private static final long serialVersionUID = -6647258400364301
I admit that the initial learning curve is a little steep, but when you see how
easy complicated things become you will never look back.
You will get JSF plus a fantastic framework to connect it to EJB3.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943348#
Use JBoss Seam it rocks
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943341#3943341
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943341
---
Using Tom
I solved the problem by using a get method on my bean instead of the factory to
load the data table.
I guess I am confused in the difference between
http://fakedomain.com/coupling/mainList.xhtml
|
and returning "couplingMainList" from a method.
|
| coup
I did away with the filter. I am posting an example here in case anyone finds
it useful. I mainly use this to set the href value is the base tag in xhtml.
People have helped me on this so I am going to start posting general examples
here.
| @Stateless
| @Name("exposeHttpServletRequest")
It this functionality likly to be included? If so when?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942299#3942299
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3942299
I have a DataModel and regular variable that are both Maps which I am
populating as follows:
Note there are 2 factory methods one to populate the DataModel and one for the
total.
| @SuppressWarnings("unused")
| @DataModel(scope = ScopeType.PAGE)
| private List couplingMainList;
|
One of my clients currently only needs minimal functionality for document
management in conjunction with the inventory management system I am building
for them.
What is the time estimate for the release of a fairly stable 3.2 release? Will
it have minimal versioning capabilities?
Is Alfresco
Is it possible to directly access the HttpServletRequest in a bean.
For example I am now using a custom filter to add the follwing items to the
request so that I can access them from Seam Components.
This currently works fine, but I am wondering if I can do away with this filter.
| package p
Sorry for crying wolf. I was mistaken. Not everything is being swallowed.
For example:
I forgot to add @Begin to a method and then called a method with @End. From
this I got an exception that did not seem to help much. I was hoping for
somethng like.
| ConversationNotBegunException: my
First let me say the solutions I am coming up with Seam are surprisingly clean
and elegant. Once I figure out what I am doing the solution rocks.
What can I do about my exceptions being swallowed and only receiving the
following?
java.lang.RuntimeException: javax.transaction.RollbackException:
I have been using the component assigned messages in the following manner:
| @IfInvalid(outcome = REDISPLAY)
| public String create() {
|
| if(poCoupling.getSize().getId()==null) {
| facesMessages.add("size", new FacesMessage("Size required"));
| }
|
|
I have been using the component assigned messages in the following manner:
| @IfInvalid(outcome = REDISPLAY)
| public String create() {
|
| if(poCoupling.getSize().getId()==null) {
| facesMessages.add("size", new FacesMessage("Size required"));
| }
|
|
That was it. That rocks. It seems to do exactly what I wanted.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936789#3936789
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936789
--
I checked out the CVS head and saw your modifications. Then I complied my
project against the new seam jar and included it with my project I cannot get
any messages to appear from either the annotations or using your modification
as shown below. Going back to the old jar solves the problem.
N
Thank you for the prompt reply and proposed solution.
I spent all day yesterday trying to get this to work. I figured this would be
obvious and trivial like most of the other seam features.
I guess it will be when you add this to FacesMessages.
Thx again. :)
View the original post :
http://w
I meant in server/default/lib so that all ears I have deployed can load the
same copy of seam.jar without having to include it explicitly in every one.
Thx for the quick reply.
See you in Vegas!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934031#3934031
Is it possilble to include seam.jar in the lib directory rather than including
it with in all of my ears an adding it to the manifest for the jars?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933785#3933785
Reply to the post :
http://www.jboss.com/index
-start org.jboss.Main -method main -params "-b55.55.55.55"
Aparently no space is allowed between the -b and 55.55.55.55
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931733#3931733
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mo
I would appreciate a sample of how you specify the ip with javaservice. I am
doing the following:
-start org.jboss.Main -method main -params "-b 55.55.55.55"
Note: 55.55.55.55 is a made up ip address as to not post the real one.
I have two static ip addresses on the server and would like to r
Could you post a code sample for looking up an EJB3 session bean from a quartz
timer?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918788#3918788
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918788
I got this to work using the following syntax. I had to add
pluggable-instrumentor.jar to the classpath and
-javaagent:pluggable-instrumentor.jar as an option.
| set
claspath=%jdkhome%\lib\tools.jar;%jbossbin%\run.jar;%jbossbin%\pluggable-instrumentor.jar
|
| jbossservice.exe -insta
I use JavaService to run JBoss-4.0.2 for production. I upgraded to 4.0.3SP1,
but I cannot use EnableLoadtimeWeaving with this service setup.
I use JDK5.
By using run.bat with the following modification:
| set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME%
-javaagent:pluggable-instrumentor
After 8 hours sleep I finally got the syntax right.
I needed to change schema to "wtf", the query to "SELECT OBJECT(o) FROM wtf AS o WHERE
o.customer.userId = ?1", and add "AS o".
| /**
| *
| * @ejb.bean
| * name="Order"
| * type="CMP"
| * view-type="local"
I tried renaming, but was unsuccessful. Here is the xdoclet code that is generating
what I sent before. Is this where I need to make the modifications? Does anyone know
why this would suddenly stop working in 3.2.4?
| /**
| *
| * @ejb.bean
| * name="Order"
| * type="
Unfortunatly I was wrong about the name causeing the problem. I renamed to CustOrder
and Odr and got the same error message. The same ear file deploy perfectly on my
3.2.3 installation.
I would appreciate any assistance. Let me know if more information is required.
Here is the entity definit
I have been using JBoss 3.2.3, but I wanted to switch to 3.2.4 for Tomcat 5. I could
not get my project to deploy and I finally figured out why. I have an entity bean
named Order and now with 3.2.4 the following error is thrown:
Caused by: org.jboss.deployment.DeploymentException: Error compili
I am excited about the JBoss MySQL AB strategic alliance. If this is the wrong place
to post this I appologize. Will MySQL still require GPL? Will I have to get a
commercial license if I do not want to open source my code? Does anyone know the
release schedule for the 4.1 and 5.0 branch of M
71 matches
Mail list logo