Perhaps you should try the 1.0.1.GA release of Seam?
(http://labs.jboss.com/portal/jbossseam/download/index.html). I think no
garuntees are made about CVS head being runnable.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3956562#3956562
Reply to the post :
I added a link on the Wiki to the blog entry under a new heading - Components.
Would you prefer a copy of the entry?
I've also added a JasperReports component that compiles (at the time Seam
starts) reports designs defined in components.xml and makes them available for
injection.
View the
No it can only send email.
When I wrote this I started off with the JavaMail API (which jboss has an impl
of) which CAN be used to receive email but changed to commons email (which is
build on JavaMail API) as it presented an easier to use interface. And I have
no need to receive emails ;)
I
From http://java.sun.com/j2se/1.5.0/docs/guide/language/annotations.html
anonymous wrote :
| Annotations consist of an at-sign (@) followed by an annotation type and a
parenthesized list of element-value pairs. The values must be compile-time
constants.
View the original post :
Look at the SelectItems thread, it discusses support for selectitems and
contains links to a couple of SelectItems implementations (but I don't think
either of them are finalised).
I'll try to get mine packaged properly over the next day or two and I may alter
the API.
View the original post
I'm sorry, I'm not quite sure what you mean.
The @SelectItems annotation (mine, not Jim's) in concert with the
EntityConverter allows you to select multiple objects (from a generated list)
and set them 'directly' (via the value attribute) as a collection on any object.
The only caveat is that
http://facelets.dev.java.net is the facelets homepage, it's linked off there,
nabble carries it, perhaps others.
Gavin et al, this is perhaps something that that should be on the FAQ. In
fact, can the FAQ be a wiki page so it is easily editable? Or developed on the
wiki or something?
View
Do the popups share entitiy beans or are entities attached to only one popup?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3956411#3956411
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956411
Yes it is.
Perhaps if you post code and where you are having problems someone can help?
The problem you mention, duplicate entry of child row: perhaps you aren't
creating a new child object for the second add?
I have such a page, it is based on a generic superclass that provides the
standard
Please show the getter and setter for #{messageManager.message}
Also you could show a simple facelets page which produces the error and the
stacktrace.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3956414#3956414
Reply to the post :
I'm not sure about the set up of your pages but you do have
@In(create=true,required=false) with no equivalent message = new FMessage() in
the second code segment. This could cause an NPE.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3956418#3956418
Reply to
I think I understand what you're trying to design (perhaps I don't thought ;)
I do something similar: For new users/whatever I have a wizard that includes
the relevant detail page for that step. For editing I use a tabbed panel
(tomahawk atm) and include the detail page (same as included for
@TransactionAttribute(TransactionType.NOT_SUPPORTED)
FlushMode.NEVER got removed from the EJB3 spec unfortunately, I know hibernate
were going to provide it anway but it doesn't seem to be there atm.
View the original post :
I created a manager component for Apache Commons email; I've included an
example to show how to use it.
* http://bigbob.splendid.co.uk/mailer.zip - Mailer component
* http://jroller.com/page/pmuir?entry=mailer_component_for_seam - Blog Entry
View the original post :
I suggest you ask in the EJB3 or hibernate forum. This problem is nothing to
do with Seam.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3956339#3956339
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956339
Using Tomcat
anonymous wrote : can anyone explain about the mc-conf.jar? I want to know if
that file is the same for every application or it will differ? if no, which
configuration should be placed on that file.
I'm not sure myself, but google tells me
Can you post all your code including the AccountOwner class. It would also be
easier to help if you simplyfy your problem to as basic a class as possible BUT
include all the code in the class.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3956342#3956342
It looks to me as though your pages.xml file is not well formed and causing a
parsing exception.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3956343#3956343
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956343
Using
anonymous wrote : 1. How do I read an HTTP header value that was passed by the
client?
I think
FacesContext.getCurrentInstance().getExternalContext().getRequestHeaderMap();
will contain this.
anonymous wrote : 2. How do I intercept the (partially?) rendered output, tweak
it, and send it on
There is a lot of discussion on the hibernate ejb forum about this. I did try
something similar a few months ago and couldn't get it to work. But, looking at
the hibernate annotations test suite there are tests which show it working -
take a look, copy the example that seems most like what you
Ok, I see what you mean; I agree, I think this is something that should work.
Looking at what I wrote I used @PostPersist to set the Id on OneToOne
relationships, but then I don't seem to have cascaded the persist so I'm not
sure if that will work in this case.
View the original post :
Often when an action method seems not to be called it is because an error
occured in the JSF lifecycle BEFORE the INVOKE_APPLICATION phase (which is when
the action method is called).
Do you see in any errors (probably related to model update) in h:messages /?
View the original post :
JSF automatically loads faces-config.xml so you shouldn't have a specific
reference to it in web.xml. You only need to put other files to load in
javax.faces.CONFIG_FILES. If you do include it it gets loaded twice and hence
all sorts of bad stuff happens (e.g. two Seam Phase Listeners are
You shouldn't need to do either (1) or (2) you mention to get Seam examples to
work. Did you follow
http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamInstallation, specifically using
the JEMS installer NOT the JBoss AS installer with ejb3 profile? Gavin's
instructions at the top of this post are
You could always preprocess the list.
Mark the status field in the user Entity @Transient (so that it isn't persisted
by the container). In updateUserList() iterate over the list created by the
database query setting status as you go (here you could interogate other
entites, SOAP, whatever).
http://jira.jboss.com/jira/browse/JBSEAM-283 might be relevant?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3955924#3955924
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955924
Using Tomcat but need to do more? Need to
By default JBoss logs to $JBOSS_HOME/server/default/log/server.log . By default
it logs Seam debug messages.
Or are you not using JBoss?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3955433#3955433
Reply to the post :
I don't know anything about Tomcat, sorry. But you'll need to find out where it
logs to (what you get in eclipse is the console output which is typically less
verbose than the log) and, then, if there are no debug messags from Seam,
adjust the Tomcat log configuration so that they do appear.
The value of the context variable someList will only last for each request BUT
the value of someList in the action component will last for the entire
conversation. For the factory method to run the component value must be null
as well.
Either make the component stateless or set someList to
Try changing
| @In(create=true)
| private CalculatorBean cb;
|
to
| @In(create=true, value=calculator)
| private CalculatorBean cb;
|
Seam uses the name of the component variable as the name of the context
variable by default; in the code you gave the context variable
Try the alternative syntax:
| h:outputText value=#{messages['repeat.password']} /
| h:outputText value=#{messages['repeat-password']} /
|
I agree, the dot notation is most useful as it allows you 'package' messages
e.g. customer.name, button.ok.
View the original post :
I'm just packaging my @SelectItems implementation to put it on the wiki. What
package name is best to use? Something under org.jboss.seam?
org.jboss.seam.extensions.selectitems perhaps?
Also what namespace for taglib.xml. Seam's uses
http://jboss.com/products/seam/taglib so perhaps
I think that contrib is better than extensions. I'm pretty sure that the xml
namespace must be a uri which limits choice somewhat.
Seam Gods, what say ye?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3955688#3955688
Reply to the post :
I've put my version here: http://bigbob.splendid.co.uk/selectitems.tar.gz. It
works well but isn't well packaged (no examples etc.). If I get time to tidy
it up I'll put it on the wiki.
anonymous wrote :
| The attached files provide a @SelectItems databinder for Seam. It has a
label
I have used component driven events a few times in my application and have
found having the payload in contexts to be good.
I think that it 'fits' well with seam design: the data/objects required by the
consumer may be from the payload, or from session or application contexts. By
using the
I would suggest using a Validator to do validation, not a Converter (concept
clarity, aviods a pointless getAsString() method).
A few ideas:
I'm not sure you can get anything except the value in this case - the component
and its parent (etc) are of no use. My best suggestion is to write a
For your 'limit' validator you could go pass in the limit value directly to
your custom validator:
my:validateLimit limit=#{backingBean.limit} /
- again how it works with dataTable I'm not sure.
The trouble with the inbuilt:
f:validateLongRange minimum=0 maximum=#{backingBean.limit} /
is
Model update is a JSF lifecycle phase, it has nothing to do with entity
persistence.
I've found model update errors often occur when the object it refers to is
null, but I would suggest using the debugger to find out more
Depending on the setting of hibernate.hbm2ddl.auto in persistence.xml
Seam has a number of contexts available
(http://docs.jboss.com/seam/1.0.1.GA/reference/en/html/concepts.html#d0e2021).
SFSBs are used for any stateful context, SLSBs are used for a stateless context.
They are all useful in the same project for different things - look at the
booking store
You could try getting the value programmatically
| @In FacesContext facesContext
| ...
|
|
facesContext.getExternalContext().getRequestParameterMap().get(schoolList);
|
Alternatively why not use a JSF component (selectManyListbox) and inject
selection as a list
View the original
Are you sure you don't have two copies of the Tomahawk/Myfaces jars in your
source path? It looks to me like although you have an array of
NavigationMenuItem it's not being recognised as such.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3954433#3954433
http://docs.jboss.com/seam/1.0.1.GA/reference/en/html/configuration.html#d0e4853
@PeristenceContext/@PersistenceContext(type=EXTENDED) are the EJB3/JPA standard
annotations for injecting a PC. @In(create=true) is the Seam way, which, as
discussed in the manual, means that
Caused by: org.jboss.seam.RequiredException: In attribute requires value for
component: infozapAction.context
is the cause of your exception. NB you can also access the FacesContext as
| FacesContext ctx = FacesContext.getCurrentInstance();
|
View the original post :
Yeah, facesContext is the name of a provided seam component
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3954453#3954453
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954453
Using Tomcat but need to do more? Need to
If getting it via FacesContext works (for a multi select) but not via
@RequestParameter I suggest you file a bug in Jira.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3954454#3954454
Reply to the post :
I think you are on the right track by switching to a Seam managed persistence
context. Have you configured a SMPC in components.xml called em as described
in the docs[1]?
[1]http://docs.jboss.com/seam/1.0.1.GA/reference/en/html/configuration.html#d0e4853
View the original post :
Have you read
http://docs.jboss.com/seam/1.0.1.GA/reference/en/html/concepts.html#d0e2511 and
the examples in Chapter 1?
For your example, a JSF input component with a value=#{mo} would have the
value entered by the user injected into your backing bean.
View the original post :
I suggest you post a (simple as possible) example of the JSF pages, classes and
stacktrace where you get the LIE
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3954505#3954505
Reply to the post :
I think this is becuase the datasource you reference in persistence.xml isn't
available.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3953956#3953956
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953956
Using Tomcat but
You can look up the entity manager in JNDI. In persistence.xml ensure that the
EntityManager is registered in JNDI:
property name=jboss.entity.manager.jndi.name value=java:/EntityManager /
and then look it up in JNDI in the validator.
Alternatively you can use Component.newInstance(...) to
You can use hotcode replacement when in debug mode for java code (allows
replacement of function body). You can use exploded ear/war/jar for jsf pages,
you still need to get the .xhtml/.jsp file from your development location into
the exploded ear (but you could write an ant task for this that
Deploy the ear to the JBOSS_HOME/server/default/deploy directory exploded (as a
directory with a .ear extension) and copy any updates to the exploded war
inside the ear; jboss will take care of updating its temp directories itself.
The ant copy task is useful for this.
|
As I said above the hot code replacement function works in debug mode. Changes
made when in debug mode within function bodies will change the code in the
deployed ear. Works well for me for non-'structural' changes.
View the original post :
Yes, I have those options specified. Have you managed to get the Eclipse
debugger to connect to JBoss? I simply have the server and the port specified
in my remote application configuation. Launching the debug configuration gives
me a list of running processes on JBoss, from there I can do
It 'attaches' the DataModelSelection(Index) to the correct DataModel. i.e.
| @DataModel
| List searchResults;
|
| @DataModelSelection(searchResults)
| Object searchResult;
|
| @DataModel
| private List questionnairesChoisis;
|
| @DataModelSelection(questionnairesChoisi)
I use Seam Managed EntityManager for this and it works as you suggest.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3947731#3947731
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947731
It's fixed (for me at least) in JBoss 4.0.4GA / Seam 1.0.0CR3 (which is a huge
relief!)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3946132#3946132
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946132
[EMAIL PROTECTED] wrote : By the way, I have not quite finished the
databinder stuff, I still have one more commit to do today. So sit tight
Gavin, did you get this finished for CR3? as I'm having problems getting the
DataSelector stuff to fire. If you have finished it then I'll to
Sorry. My bad. I was navigating without calling any action/property on the
bean so it (obviously) wasn't injecting the Selection into the bean.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3946291#3946291
Reply to the post :
Surely something like
| @Stateless
| @Name(employeeManager)
| public class EmployeeManagerBean implements EmployeeManager {
|
|@DataModel(scope=PAGE)
|private ListEmployee employees;
|
|@In(required=false)
|private Boolean internal;
|
|
Ok, I'll try to explain better ;)
I want to do pageflow - decision - JSF outcome (dependent on user selected
option from list).
You can get around it by entering each possible outcome from the decison as a
page:
|
| decision name=nextTask expression=#{addVenueNextTask}
|
To me it doesn't look like you've started a conversation on itemEditor - hence
the error message.
It seems unlikely that a long running conversation is starting in itemEditor
without any method @Begin. You can check if a new conversation is acutally
created on the debug page.
If you inject a
Pretty sure it does was it says on the tin! You have a JSF variable and a Seam
component with the same name.
http://www.jboss.com/index.html?module=bbop=viewtopict=82004
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3945728#3945728
Reply to the post :
I think a component repository is a very good idea. Allow people to plug stuff
into seam as they like and make changes if needed. I can immediately see that a
data binder for select items and for the myfaces tree stuff.
Perhaps the wiki is a good a place? For soemthing like SelectItems it's
Oh and is it planned for there to be explicit SelectItems support added to Seam
or do we need to write it ourselves using the DataBinder stuff?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3945798#3945798
Reply to the post :
I've now written an implementation of this, but on my last CVS update I've
noticed that there is now a DataBinder that will do this as well!
Here it is but I think that Gavin's version is much more elegant! Only a couple
of days wasted!
For posterity:
Problem Statement
Next page to goto at end of wizard (using a pageflow) is determined by
user-selected selectItem.
Implementation
Use a decision node to select an ad-hoc (JSF) outcome, decision based on value
of selectItem
Flaw in implementation
Transitions from decision
AFAIK the seam tags only work with Facelets as the view handler and not with
JSP. There are no Tag files atm. If you aren't using facelets and starting
afresh you should definitely consider using it.
View the original post :
Do you have
| context-param
| param-nameorg.jboss.seam.core.init.debug/param-name
| param-valuetrue/param-value
| /context-param
|
in your web.xml (or the equivalent in your seam.properties) - assuming you are
on a recent CVS version?
View the original post
Sure
addVenue.jpdl.xml
| ?xml version=1.0 encoding=UTF-8?
|
| pageflow-definition
| name=addVenue
|start-page name=details
view-id=/secure/venue/addVenue_details.xhtml
| transition name=next to=travel/transition
| transition name=cancel to=cancel/transition
|
You do need the commons-fileupload and its dependencies (I think I had to add
commons-io and commons-lang) jars from apache. It looks like it can't find
them - classpath issue or perhaps you don't have them?
View the original post :
I'm not at my desk at the moment so I'm not sure of the exact files. I
remember having issues with packaging the commons stuff in the ear and ended up
just putting them in the jsf-libs directory directly.
View the original post :
Its a problem with myfaces logging. They've swallowed the
ClassNotFoundException and displayed that error message instead. Make sure
your jboss-seam.jar is in a location that is on the classpath (I have mine in
the META-INF/lib of my ear); you'll need to update your application.xml to
Yes it does. Here's an example of what I mean
Excerpt from CreateClientBean
| @End
| public void create() {
| log.info(Running create method);
| throw new RuntimeException(Create method throws a runtime
exception);
|
As I understand it (this is quite likely to be a facelets centric view ;) )
| // Your code
| ...
|h:dataTable value=#{dataModel} var=row
| h:column#{row.col1}/h:column
| h:column#{row.col2}/h:column
|/h:dataTable
|
|c:forEach items=#{list} var=row
|
Oh, and JSF 1.1doesn't use unified EL (as mentioned in your link).
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3944144#3944144
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944144
I've been thinking about ways to do this. I'm currently stuck on one aspect:
To do this successfully a JSF converter is needed. The converter needs to do
getAsObject, the way I've seen this done is
| Object o = entityManager.find(Entity.class, id);
|
but this requires a handle on the
In case anyone else finds it useful I've put my solution here:
http://jroller.com/page/pmuir?entry=modelvalidator
I did a fairly simple modification to the Seam code and added a handler to
accomodate EL expressions for the property attribute
View the original post :
You could try using the s:validate ui component; it will validate just the
field it is attached to using the hibernate validator. I've found it a much
more flexible/robust approach (but it does require you to add the tag to each
input - potentially a big job!)
View the original post :
Use case:
Wizard style conversation (using jPDL) results in a summary page. Summary page
summarises the information the user has entered and provides a list
(selectOneRadio) of 'what do you want to do next' options (e.g. create another
entry, generate paperwork). Summary page has back (defined
If an exception occurs evaluating the expression of an action inside a
transition then an exception is thrown [1]. It doesn't include the oiginal
cause of the error making it hard to debug. If possible could the original
exception be included? Or is this one for the jBPM people?
Thanks
Peter
In facelets c:forEach is evaluated at compile time (afaik, see
http://wiki.java.net/bin/view/Projects/FaceletsFAQ#What_s_the_difference_between_c
but as I mentioned you can use ui:repeat as a render-time replacement.
View the original post :
The c:forEach is evaluated at compile-time, the h:dataTable is evaluated at
render-time. This means that the section variable is not available at
compile-time to the c:forEach.
So you could change your h:dataTable to be another c:forEach (using a list
to back it), or, if you use facelets, you
Hi
I'm just experimenting with the s:validate validator component provided as
part of the seam-ui library. The code checks to see that a valid value
attribute by looking for a value attribute of
{model.field}
and determines the model from that by stripping off the .field part.
My problem is
Louis et al
I would be very interested in hearing your conclusions (when you come to them
;-) ) on this topic as I will have to work with error handling at some point.
I noticed there is a bug open about this:
http://jira.jboss.com/jira/browse/JBSEAM-186
I'll post back here if/when I make
Would you accept/consider a patch to allow
| s:validate property=model.field /
|
where property could be a static value or EL that evaluated to a String. The
property attribute version would need to take precedence over the value
attribute for working out model.field.
Or should I
http://www.jboss.com/index.html?module=bbop=viewtopict=74300
Is a general discussion on implementing security using JAAS and servlet
security - if you follow the example posted by Louis you can easily secure a
directory of pages. If the user isn't logged they get transparently redirected
to
This (I think) is a bug in the JBoss implementation of EJB3 - see:
http://www.jboss.com/index.html?module=bbop=viewtopict=81756
and
http://www.jboss.com/index.html?module=bbop=viewtopict=81613
I'm not sure if there is an ETA for this to be fixed or not. EJBTHREE-540 which
deals with it is
To get the username:
if ( facesContext.getExternalContext().getUserPrincipal() == null ) {
| // User not logged in
| } else {
| String username =
facesContext.getExternalContext().getUserPrincipal().getName().toString();
| }
From this you can just use a normal EJB/Hibernate
Louis,
Superb example - allowed me to get everything up and running smoothly.
Thanks
Peter
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3941850#3941850
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941850
I've added this to JIRA as
http://jira.jboss.com/jira/browse/JBSEAM-229
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3941718#3941718
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941718
In the Seam documentation it states in 6.1 that if 'no scope is explicitly
specified, the default depends on the component type' however when I don't
specify a scope the scope on the component is set to UNSPECIFIED. I'm using
CVS20060418.
| @Name(admin)
| @Stateless
|
See
http://www.jboss.com/index.html?module=bbop=viewtopict=79422
The workaround suggested by dahm works fine - you'll need to restart jboss each
time you replace the file (I think...) and you will need to specify messages
for the properties defined by hibernate.
Actually, is it possible to
Thanks. I'll wait for the new release and add in my messages then. I take it
in the fixed version putting a
ValidatorMessages_en.properties
file in the root of the jar is correct?
Peter
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3932138#3932138
Reply
I'm trying to get validation to work in long running conversations:-
| @Begin(join=true)
| public String findVenues() {
| // Utility method, sets up an outjected DataModel
| findAll();
| // Redirect to result display page
|
I'm trying to get custom validator messages working.
I have
sms.ear
-- sms.jar
-- ValidatorMessages.properties
...
-- sms.war
...
When I deploy the ear to Jboss 4.0.4RC1 an exception is thrown complaining that
the key postcode cannot be found (see below) however executing
|
96 matches
Mail list logo