Thank you for your quick answer.
In fact I didn't see that JBoss Tools offers these JBoss Runtime adapters.
Now everything is ok.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4128772#4128772
Reply to the post :
I just created my first seam project with the Seam Web Project wizard.
It's an EAR project with a data source. It uses JBoss 4.2 as server.
When I use Run On Server, I get this error:
| --- MBeans waiting for other MBeans ---
| ObjectName:
| @In attribute requires non-null value: routingHome.nodeHome1
|
You need to declare nodeHome1, nodeHome2, nodeHome3 ... as seam components in a
components.xml file.
See the patch doublon for JBSEAM-994.
View the original post :
See patch with http://jira.jboss.com/jira/browse/JBSEAM-1675
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4117806#4117806
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117806
I haven't try to use seam-gen to generate many-to-many relationship from DB.
But I use the new generate-ui target to do it from existing classes.
It needs changes not only in view templates (view, list and edit.xhtml.ftl)
but also in EntityHome.java.ftl.
About M2M and reverse DB: you should
See http://jira.jboss.com/jira/browse/JBSEAM-1675
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4112118#4112118
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112118
___
Sorry i wrote too quickly. Indeed it should have been
anonymous wrote : The JBSEAM-1493 Seam-gen: allow return to original page
should take this case into account.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109385#4109385
Reply to the post :
The JBSEAM-1493 Seam-gen: allow return to original page takes this case into
account.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109377#4109377
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109377
You can use directly something like:
| java.util.ResourceBundle resourceBundle =
org.jboss.seam.core.ResourceBundle.instance();
| String message = resourceBundle.getString(key);
|
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108253#4108253
Reply to
Put in your properties file these keys:
[EntityName]_created
[EntityName]_deleted
[EntityName]_updated
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4107714#4107714
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107714
anonymous wrote :
| There is no plan to create a generate-ui task?
|
Pete Muir just integreted JSEAM 843 (Generate application from existing
entities) in CVS.
anonymous wrote :
| For 1.2.1 there is http://jira.jboss.org/jira/browse/JBSEAM-1206;
|
This issue is related to improve
About 3), see also
http://www.jboss.com/index.html?module=bbop=viewtopict=122806
and the related feature request Namespace or alias of messages' key
http://jira.jboss.com/jira/browse/JBSEAM-2237
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4106778#4106778
it seems to me this question is related to JBSEAM-843
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4106075#4106075
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106075
___
I just created a jira entry:
http://jira.jboss.com/jira/browse/JBSEAM-2237
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4103509#4103509
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103509
I like this idea.
Can you create a jira entry?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101709#4101709
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101709
___
jboss-user
anonymous wrote : nothing to do with seamgen
I think so.
You can try:
- to add
sql-type=char(32)
in
@Column(name = id, unique = true, nullable = false, length = 32)
- or to extend MySQLDialect class.
View the original post :
The line
| property name=hibernate.hbm2ddl.auto value=validate/
|
is not the problem. It's just the tool which tells you that you have a problem
with the column type of column id:
| Wrong column type: id, expected: varchar(32)
|
Here the issue may be with the MySql dialect. I had
Good!
May I suggest that, in place of the partial result of interpolation, the wrong
message is also shown to the user by returning it in the catch block:
| log.warn(exception interpolating string: + string, e);
| return string;
|
It gives then a direct clue
Declare your new Identity class with something like:
| @Name(org.jboss.seam.security.identity)
| @Scope(SESSION)
| @Install(precedence = APPLICATION)
| @BypassInterceptors
| @Startup
| public class ExtendedIdentity extends RuleBasedIdentity
|
the point here is the
Below what I found. There are maybe other uses.
About wire():
Used in files {entity}Edit.page.xml to manage M2O link.
About isWired():
ATM, only used in edit page with save button, to disable it
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4093788#4093788
anonymous wrote : JBSEAM-843 is about generate from existing entities; why
shouldn't that make it into seam-gen ?
If so I misunderstood you. I'll be very happy if seam-gen can generate from
existing entities.
anonymous wrote : alot of temp files are generated what does that mean ?
The patch:
in target generate-entities:
- a template is used to put the list of all the root keys needed by an entity
in a text file; this template combines the structures of list.xhtml.ftl and
edit.xhtml.ftl to be sure to cover all the messages needed by an entity
- and an other template will put the
anonymous wrote :
| something that just compiles is not enough, it needs to also actually work
|
patch proposed with JSEAM-994 IS working here.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092569#4092569
Reply to the post :
anonymous wrote :
| i18n probably is easy to fix but needs fixes to hibernatetools to not
overwrite files that are changed etc.
|
The current version here of this feature deals with it through separation of
properties files:
- one with constant messages provided by Seam: can be modified
anonymous wrote :
| I'm not against all these I just think some of the templates are
(unnecessarily) complex as is (same for the generated result)
|
I guess that it's JBSEAM-1206 which is concerned here.
Mainly I replaced each hard coded message in templates by a
#{messages['...'].
I
anonymous wrote :
| Does seam-gen even work with many-to-many relationships?
|
No.
See Generate apps that has many to many table with seam-gen,
http://www.jboss.com/index.html?module=bbop=viewtopicp=4032289
View the original post :
anonymous wrote :
| related is that we handle JBSEAM-843 ... in jboss tools/rhds now...just fyi
;)
|
does rhds manage manytomany associations?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092665#4092665
Reply to the post :
About i18n:
I agree with you, the #{messages...} are ugly, but it's the standard way to do
i18n with Seam...
An other way is #{interpolator.interpolate...}, but imo it's worse and should
be used only if necessary.
I think that seam-gen is not only for beginners, or a fun prototype, but an
anonymous wrote :
| related is that we handle JBSEAM-843 and JBSEAM-1136 in jboss tools/rhds
now...just fyi ;)
|
Good!
anonymous wrote :
| The best way to fix the other issues is patches and testcases
|
About 994, 1493 1206: a patch was proposed for each of them. So...
messages in properties files are coded in iso-8859-1, not in utf-8
Any non iso-8859-1 character must be coded using Unicode escapes, i.e. \u.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092304#4092304
Reply to the post :
There is a bunch of feature requests for seam-gen that are awaiting now for
quite a long time, e.g.:
JBSEAM-994 seam-gen and mutiple foreign keys,
JBSEAM-843 Generate application from existing entities,
JBSEAM-1493 Seam-gen: allow return to original page,
JBSEAM-1136 Support multiple
I'd like to use hibernate filters. The only documentation I found is:
- Seam manual 8 - Using Hibernate filters
- Seam example wiki
Where can I find some more information:
- meaning of attributes in persistence:filter
- how to use such filter in java code
View the original post :
see http://jira.jboss.com/jira/browse/JBSEAM-994
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4088908#4088908
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088908
___
jboss-user
I just updated seam from cvs and tried to created a new project.
When I run seam setup I get:
anonymous wrote :
| Buildfile: C:\DEV\projects\eclipse\workspace\seam-cvs\seam-gen\build.xml
|
| init:
| [artifact:dependencies] Downloading:
Well, good news: Seam 2 CR1 has been released
Bad news: nobody answered to this thread ;)
So, what next?
May I expect any reaction?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4086214#4086214
Reply to the post :
On http://labs.jboss.com/tools/, it's stated that Seam Tools will include
support for seam-gen.
Where can we find more information?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4085747#4085747
Reply to the post :
Redirect.instance().captureCurrentView() works with the viewId of the required
view. See login pages in seam-gen to get the idea.
You need to use a page parameter. See (in french):
http://wiki.objetdirect.com/wiki/index.php?title=Navigation_avec_Seam
View the original post :
anonymous wrote :
| I think it should work as they described
|
In fact it does. But I needed some times before to get it: the key words are
current request. The viewId is the one of the request, i.e. of the required
view, not of the requiring view.
You can switch from the current
In application generated by seam-gen, there is in components.xml:
|event type=org.jboss.seam.notLoggedIn
|action expression=#{redirect.captureCurrentView}/
|/event
|event type=org.jboss.seam.postAuthenticate
|action
I'd like to stay on the same page after a
org.jboss.seam.security.AuthorizationException.
I tried
| exception class=org.jboss.seam.security.AuthorizationException
| redirect view-id=#{pages.getCurrentViewId()}
|
Can we have such a converter in Seam UI. Is it possible?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4080496#4080496
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4080496
___
Vincent said.
anonymous wrote :
| The issue comes from the fact that when I hit the Save button, the onblur
event from a:support fires at the same time and it breaks the save process. If
I click outside the edited field, and then click the save button it works.
|
so I tried this
With @Name and @Role you can define only two components, with the same scope or
not:
| @Name(user)
| @Scope(SESSION)
| @Role(name=user2, scope=SESSION)
|
There is no such limitations with @Roles
| @Name(user)
| @Scope(SESSION)
| @Roles({
|
| f:converter converterId=javax.faces.BigDecimal/
|
but without localization or any attribut other attribute as pattern
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4079882#4079882
Reply to the post :
And use this to get a converter with l10n:
|
| import java.math.BigDecimal;
|
| import javax.faces.component.UIComponent;
| import javax.faces.context.FacesContext;
| import javax.faces.convert.NumberConverter;
|
| /**
| * Converts a Double or Long value provided by
When an EL expression is not closed by a brace, an error is thrown.
It would be better to show the wrong expression as it is:
1/ it's already the way of doing the thing, see in InterpolatorTest the
existing case of
// test that a messageformat error doesn't blow up
anonymous wrote :
| Actually I've been developping myself an MDA generator for Seam using
Acceleo, for my company, but unfortunately they don't plan to put it on
opensource.
|
Any chance your company rethinks about this?
View the original post :
There is no official release of the seam cartridge and so no doc.
You have to check by yourself. The snapshot is at
http://team.andromda.org/maven2/org/andromda/cartridges/andromda-seam-cartridge
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4077866#4077866
OK.
1/ So it isn't possible to use here the enhanced EL of Seam, something like:
| h:outputText binding=#{bindingtest.testText('toto')} /
|
| public HtmlOutputText testText(String text)
| {
| HtmlOutputText outputtext = new HtmlOutputText();
|
Modoc,
Will you create a new Jira entry?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4075706#4075706
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075706
___
jboss-user
Here is a try i did some time ago with generate-entities.
The idea is to avoid to duplicate the same code in seam-gen/build.xml and in
{project_home}/build.xml.
It should work for any other target.
In the seam-gen/build-scripts/build.xml, add:
| target name=generate-entities
|
An other way would be:
- when you create a new project, copy the build.properties inside it
- add in the build.xml of the project targets generate-entity ... linked
to the associated targets in seam-gen/build.xml
You can call these targets from the project under Eclipse.
Then each project is
In a page with only a h:outputText and a h:form, as soon as I click on the
submit button of the form, I get this exception
anonymous wrote :
| 12:23:22,468 WARN [lifecycle] executePhase(RESTORE_VIEW 1,[EMAIL
PROTECTED]) threw exception
| javax.el.PropertyNotWritableException: /home.xhtml
anonymous wrote : You'd have to modify the seam-gen templates
seam-gen/build-scripts/build.xml and seam-gen/build.xml.
Other?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4075503#4075503
Reply to the post :
What is you configuration in faces-config.xml?
What is the current value of locale?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073906#4073906
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073906
Try:
- either to remove default-locale in locale-config
- or to change the name of properties file from messagesAfn.properties to
messagesAfn_en.properties
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074002#4074002
Reply to the post :
An other custom-made approach would be:
- keep a quickstarting as it is currently,
without choice about the basic frameworks
as Richfaces...
- add the possibility to use specific technologies
e.g. joda datetime, PDF generation...
- and still be able to regenerate all the project without
Only use messages to get the message map, i.e.:
| h:outputText value=#{messages['pwdchange.screen.title']} /
|
even if you use different bundle names
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073748#4073748
Reply to the post :
I rebuild from the start my project with seam-gen, and now it's ok.
So it must be a mess with an old library or some configuration parameter...
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069181#4069181
Reply to the post :
I'm not sure to understand your idea. Can you explain a little more?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069247#4069247
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069247
why not.
IMO a better trick would be to use hibernate custom value types for the foreign
keys. Then it will be easy to check these types in the template.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069349#4069349
Reply to the post :
See http://jira.jboss.com/jira/browse/JBSEAM-994
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069351#4069351
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069351
___
jboss-user
in generate-entities target, add a hbmtemplate to create some
hibernate-console.cfg.xml file.
| hbmtemplate filepattern=hibernate-console.cfg.xml
|
template=hibernatetools/hibernate-console.cfg.xml.ftl
|
It's really a work in progress.
I just checked it againt Seam 2 cvs.
So, the code as it is...
All the calls go through MenuManager
| package org.jboss.seam.menu;
|
| import static org.jboss.seam.ScopeType.APPLICATION;
| import static org.jboss.seam.annotations.Install.BUILT_IN;
|
and what if:
ear/a.war/WEB-INF/classes/Messages.properties
ear/b.war/WEB-INF/classes/Messages.properties
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069429#4069429
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069429
See http://jira.jboss.com/jira/browse/JBSEAM-843
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4068632#4068632
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068632
___
jboss-user
About your first point, I'm not sure it's the best way to get a customized
label.
The comment must remain a comment, e.g. some thing to be use in a popup window.
I'd rather get the column name as something immutable and use it to retrieve an
i18n message.
As example you can see the patch I
About point 1: it's not on the roadmap for seam 2.0.1.GA, see
http://jira.jboss.com/jira/browse/JBSEAM?report=com.atlassian.jira.plugin.system.project:roadmap-panel
About point 2: yes some time you want dropdown list. IMO, the presence of a
foreign key is not a good criterion.
I already
After updating one hour ago, I get now the same exception.
I don't think it's about declaration of Ajax4JSF filter in web.xml as:
- i was already working with Seam 2 cvs but updated may be 10 days ago
- there is no Ajax4JSF filter in the project web.xml, and this since i work
with seam 2
So...
Hello,
I just started to work on a menu build through configuration file, but:
- without using any of the standard configuration files as components.xml:
I define a specific menus.xml file in the same way that pages.xml
- and agnostic about implementation, even if by default it'll be RichFaces.
Mmm, may be tell to JSF where to find the messages, add message-bundle tag:
|application
| message-bundlemessages/message-bundle
| locale-config
| default-localeen/default-locale
| supported-localeen/supported-locale
| [...]
In your faces-config.xml file:
| application
| locale-config
| default-localezh/default-locale
| supported-localeen/supported-locale
| supported-localeen_US/supported-locale
|
Hot redeployment of Properties files is working (files are updated on the
server).
But you need to restart the application to get the new messages as these files
are read only when the application is started by the server.
View the original post :
May be some ideas here:
http://www.javaworld.com/javaworld/javatips/jw-javatip125.html
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4061627#4061627
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061627
The only thing you really need is
| meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
|
as stated previously. It is always used by the browser to sent request to the
server. Even if the encoding option of the browser is forced to an other value.
The attribut lang in tag
Where is ConversationPropagation?
I just updated from CVS, and when I try to build seam, I got error
ConversationPropagation cannot be resolved.
I tried to find it, but was unable.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054122#4054122
Reply to the
First try: everything seems ok now.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4052403#4052403
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4052403
___
jboss-user mailing list
Thanks! It works fine.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4052402#4052402
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4052402
___
jboss-user mailing list
Not all uses of jstl's fn: function produce an exception.
For exemple:
| #{fn:length(testFromType)}
|
works fine.
But I get the same exception with
| s:button id=done
|value=Done
| view=/TestList.xhtml
|
lschaffer is right. It's aN issue with the version of hibernat in
seam-csv/lib/hibernate-all.jar.
Even if you specify an other archive file for hibernate, seam always uses
seam-csv/lib/hibernate-all.jar as there is
| java -cp %JAVA_HOME%\lib\tools.jar;%DIRNAME%lib\ant-launcher.jar
atm, I use:
- seam 1.2.1 with jboss AS 4.0.5 (application dev)
- seam from cvs with jboss AS 4.2 (test of ideas)
and I don't mix the two of them...
About seam-gen from cvs, there is some issues but nothing fatal:
1/ an exception when loading:
anonymous wrote :
| caused by:
I just tried the workaroud with
| page view-id=*
| navigation
| rule if-outcome=home
| redirect view-id=/home.xhtml/
| /rule
| rule if-outcome=fundList
| end-conversation/
| redirect
With seam 1.2.1.GA, I tried this code:
| page view-id=*
| navigation
| rule if-outcome=fundList
| redirect view-id=/FundList.xhtml
| param name=conversationPropagation value=none /
| /redirect
|
I generated an application with seam-gen from Seam 1.2.1.GA.
In the [Entity]Edit.page.xml files, there is always a call to
[Entity]Home.wire, e.g.:
|action execute=#{workerHome.wire}/
|
But the wire method are never called when the Edit page is called. Almost
always there is no
anonymous wrote : As noted in my post, I added the mappings to my web.xml and
that just made my application crash.
yes but your error message states that
anonymous wrote : ExtensionsFilter not correctly configured
so...
And about
anonymous wrote : tomahawk,jar have to be in the web-inf/lib
I
In the manuel of version 1.2.1.GA, I found this:
anonymous wrote :
| 23.9. Infrastructural components
|
| These components provide critical platform infrastructure. You can install
a component by including its class name in the
org.jboss.seam.core.init.componentClasses configuration
anonymous wrote :
| I was thinking perhaps we need to add the configuration to JBoss not our
app, since the MyFaces stuff is in JBoss but I couldnt find anything on the
JBoss site except in some forums people say they do have this configured.
|
Tomahawk works fine with application
I work under Eclipse, with seam 1.2.0PATCH1
In the build.xml of a project created by seam-gen, the targets explode and
buildtest are lauched after each change of a file. But then the target
compile is not lauched.
So after any change in a java file, compile must be lauched by hand.
Is it on
I change my question...
If I use the Eclipse clean command for the project, I get the compilation of
all the project java files... and a little more: jboss seam's class files are
also compiled under test-build and then copied under
exploded-archives/[project].jar
Is it on purpose?
I tried
You can use jstl functions:
| xmlns:fn=http://java.sun.com/jsp/jstl/functions;
|
| [...]
|
| h:outputText value=#{fn:substring(aString, 0, 5)}.../
|
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4031393#4031393
Reply to the post :
It's a known issue with dateConverter. By default GMT is used. If your server
isn't in GMT+1, then... the first day of a month can become the last day of the
previous month!
To avoid this:
- fixe timezone explicitly
- use joda library
- use a converter as the one you tested
- ...
Pierre
anonymous wrote :
| If your server is in GMT+1
|
indeed
Sorry for the noise.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4025823#4025823
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025823
Hello,
anonymous wrote : added the trinidad and a4j-trinidad jar
Can you be more specefic? trinidad-api-incubator-m1-SNAPSHOT.jar and
trinidad-impl-incubator-m1-SNAPSHOT.jar?
anonymous wrote : to WEB-INF/lib and added them to the build.xml to be added
to the ear
are they copied in the root
Hello,
thirdparty-all.jar doesn't contain the full asm library.
The simplest way is to use the groovy archive with dependencies, that is
groovy-all-1.0-RC-01.jar.
Regards
Pierre
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4024509#4024509
Reply to the
Hello,
I use seam-gen (seam 1.1.7.RC1) to generate list and home classes from entities
with jpaconfiguration .
One class, Contract, has two attributs, seller and purchaser, with the same
type Party.
The generated ContractHome class contains:
| @In(value =
Hello
you are using Trinitad with a4j, so try with ajax4jsf 1.0.5 and
a4j-trinidad.jar
see https://ajax4jsf.dev.java.net/nonav/ajax/ajax-jsf/download.html#binary
Regards
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3995542#3995542
Reply to the post :
Richard
read the thread
http://www.jboss.com/index.html?module=bbop=viewtopict=93507
to get some more explanations about NotNull annotation and validation tag.
Pierre
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3988670#3988670
Reply to the post :
anonymous wrote : JSF only runs validatation (in this case the
HibernateValidator via the s:validate/s:validateAll tags) if the input field
isn't empty. To check that a field is not null / not an empty string you need
to use the required=true attribute on the JSF component tag.
| bsmithjj
anonymous wrote : If the field is null the hibernate validator won't run
|
As I understood, required=true is needed to be sure that any hibernate
validators specified will be run with s:validate(All).
But what about:
- if null value, I don't care (a value is optional)
- but if a value is
anonymous wrote : In other words what I am saying is that all hibernate
validators work as you describe EXCEPT @NotNull/@Length(min=1).
OK.
After some more trials, I found that with no required=true and:
- @NotNull, the null value is accepted!
- any other hibernate validation which assumes a
1 - 100 of 110 matches
Mail list logo