I've submitted a patch for UIFileUpload.
http://jira.jboss.com/jira/browse/JBSEAM-1981
With this patch you can use the hibernate validator framework.
For example I've done an Image annotation which check if a byte[] can be read
by ImageIO.
| @ValidatorClass(ImageValidator.class)
|
Hello,
fileUpload is a EditableValueHolder true and validate all attach a
modelvalidator to it.
But the file upload occur during the update model phase so the data is not
validated.
Cheers,
Bruno
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4088925#4088925
Hi, about the EntityHome class I think it would be better to just pass the
entity class as a parameter for the constructor, or at least to have a
parameterized constructor.
I've done a quick performance test to see the reflection overhead :
with a Sun 1.6 JVM it's 30.
| package test.java;
I just moved to Seam 2 and I found this little change in the Identity class.
Prior to 2.0 we had :
|public void authenticate()
| throws LoginException
|{
| authenticate( getLoginContext() );
|}
|
Now we have :
|public void authenticate()
|
anonymous wrote :
| Seam instantiates (javabean) components with a no-arg constructor, so this
won't help, unless you yourself instantiate an entityHome using new, which
you shouldn't ever be doing.
|
Of course. But I didn't think it in that way ... You mainly use EntityHome with
matt.drees wrote : right?
Right :) It's just a matter of design ...
( To me it would have been better to just remove the reflection stuff and
change the no-arg constructor to a parameterized one )
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4088533#4088533
You may have to parameterize your BookingHome : try
| public class BookingHome B extends Booking extends EntityHome B {
|
and then
| public class BulkBookingHome extends BookingHomeBulkBooking {
|
View the original post :
I'm also interested in profiling JBoss with eclipse.
- Tried the TPTP but I can't get it working (looks buggy to me)
- Tried the jboss-profiler (not integrated with eclipse, its a web app which
uses logs), but I didn't find it that good (I can't see EL method call on the
method call page, even
About performance I'm wondering if JSF (+ Seam) is viable for a heavy loaded
application (extranet).
I've downloaded Nuxeo which is the only open source real application I know
that uses Seam. Ok it's designed for intranet usage but It's amazing how slow
it is ...
I have a small server, for
Thanks, mgrouch.
I was looking for some open source software but I'll give a try to JProbe.
BTW thanks for all your performance investigation (++ for the performance tips
thread).
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4088069#4088069
Reply to the post
Hi,
I've something working fine with TinyMCE.
There's post about how to use it with ajax :
http://www.jboss.com/index.html?module=bbop=viewtopict=109794
This is how I use it (with ajax re-rendering):
- copy the tinymce scripts into your project
- add this script (init-tiny.js) :
|
donno, I haven't used it with resources
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=408#408
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=408
___
jboss-user mailing
Cause it only works for method binding (such as action=xxx).
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4083546#4083546
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4083546
I remember seeing posts saying that giving parameters for method bindings is
not possible in facelets custom tags ...
I'm using Seam 1.2.1.ga and I was wondering if this will be fixed in Seam 2 (I
think the Seam 1.3 has been abandonned ?) or if any workaround exist for 1.2.
Thanks
View the
Ok I found the solution in this thread :
http://www.jboss.com/index.html?module=bbop=viewtopict=101324postdays=0postorder=ascstart=20
The messages component cache the messages ...
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4067083#4067083
Reply to the post
I see few solutions to achieve this :
(1) extend seam's ResourceBundle component to use bundle in database (there is
a post in the forum on this)
(2) extend seam's ResourceBundle component and manage resource bundles manually
(I mean writing the cache and the load method)
(3) extend seam's
I'd like to use wildcard in the from-action attribute like this :
| navigation from-action=#{logoEditor.editLogo(*)}
| redirect view-id=/logo/edit.xhtml/
| /navigation
|
So each time I use logoEditor.editLogo whatever the parameter is I'm redirected
to edit.xhtml.
I tried with
Maybe you'll find the answer in this thread (Seam Maven) :
http://www.jboss.com/index.html?module=bbop=viewtopict=97338start=80
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066211#4066211
Reply to the post :
Yes it's a navigation rule.
Thanks anyway.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066212#4066212
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066212
___
jboss-user
@DataModel doesn't work with Set for me. I'm using Seam 1.2.1 GA with Sun JSF
Impl. I've been looking in SetDataModel and I found this :
|@Override
|public Object getWrappedData()
|{
| return set;
|}
|
But set is not supported by JSF so I changed it to the
Is there any annotation like the DataModel one which would make easier the use
of TreeNode ?
Thanks
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4064575#4064575
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064575
Ok I wanted to be sure before to start writing anything.
Thanks
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4064613#4064613
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064613
I would like to unit test a Seam SFSB which uses an injected logger.
I didn't find any MockLog so I use the logging factory like that :
setField( editor, log, Logging.getLog( test ) );
It solves the NullPointerException and the test are working fine but when
logging, the Interpolator try to
Ok,
http://jira.jboss.com/jira/browse/JBSEAM-1633
I attached a MockLog. The mockLog method for SeamTest should be straightforward.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062339#4062339
Reply to the post :
Sorry for this, it's probably not the right place ...
I've been working with Seam for a few month and I definitively like it ! I'm
currently in London and I would like to move to a very small village far from
the city (in another country :)). I won't find anything overthere so I'm
thinking
Just wondering would it be possible to validate (using the seam validation
mecanism) a file.
I would like to upload an image but the accept attribute of the fileUpload
component is neglected by the browser. So I wrote an Image validator and I
would like to use it with s:validate. Problem
Cool !
Thx
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058152#4058152
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058152
___
jboss-user mailing list
I have few problems with seam's graphicImage component.
* NullPointerException due to getRenderType() != null
This is the encodeChildren method of UIComponentBase (Sun impl)
| /**
| * @throws NullPointerException [EMAIL PROTECTED]
| */
| public void
Actually not : I did ant war.tomcat in the ui example folder. I put it in my
tomcat (5.5.23) webapps. Tomcat start successfully. But when enter one of the
link (fileUpload for example) on the main page I get :
| 15:10:49,124 ERROR [ExceptionFilter] could not roll back transaction
|
BTW I use the fileUpload without problem. Here's my facelets page :
| rich:panel
| f:facet
name=header#{messages['edit.file_upload']}/f:facet
| h:form enctype=multipart/form-data
| s:fileUpload
Ok,
http://jira.jboss.com/jira/browse/JBSEAM-1457
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054426#4054426
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054426
___
Ok I have the solution : doesn't work when cookies are not allowed. The session
is destroyed regularly.
I'm not a Servlet expert but why does it happen ??
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054472#4054472
Reply to the post :
I just had a problem with facelets version 1.1.11 when using seam's decorate
tag. The ui:insert/ doesn't insert the content of the decorate childs but the
content of the last (?) ui:define. In my case the body definition. In result
I have duplicate tags (and duplicate id errors).
I switched
Ok no one see a solution without cloning ?
It would help me a lot !
Thanks
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4052788#4052788
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4052788
Thank for your reply Pete.
I tried nested conversation without success. The problem is that you get the
same persistence context even if you use two components.
I didn't find a solution with JTA as well :
- Start a transaction with entity manager 1
- Persist the parent
- Start a transaction
I would like to create a questionnaire and its questions in the same page.
The user will be able to add/remove/edit question to a new questionnaire and
save/cancel the whole thing at the end.
I have problems for editing a question. Here is the use case :
- New Questionnaire
- New Question (1)
I tried that one as well but it fails for this use case :
- New Questionnaire
New Question (1)
Save Question (1)
Edit Question (1)
Cancel changes on Question 1
- Save Questionnaire (em.flush())
I got the changes done during the edit step.
Thanks for the reply.
View the
I have the same problem ... I'm using Sun JSF Impl
After a look in the code I found the problem : UIValidateAll add the validator
in the getChildren() method. During the restore phase the StateManager restore
the component tree structure before restoring the state. So the getChildren()
method
anonymous wrote :
| 3) 'xxx: Value is not a valid option' validation error occurs because the
newly submitted converted selection is not a member of the original list. Have
you overridden equals() on the OrgUnit so that it uses Id equality rather than
object equality (you create a new
Ok well I didn't try that one ... I thought that wasn't possible to add
children during the render phase.
I'll have a look,
Thanks
Bruno
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4050011#4050011
Reply to the post :
Thanks for the reply. In this article Rick Hightower explain how to make
compile-time tag, which doesn't work for my requirements.
It's not difficult to turn them into render-time tags but I found easier to
just use the rendered attribute.
I've done a component which work like this :
|
Hello,
I'm wondering if there is a simple way to bind a model property to a component
attribute.
Here is a simple example :
I would like to persist the selectManyCheckbox layout attribute. In the model I
would typically use an enum (independent of the UI values) like
enum Alignment {
Hi everyone,
I'm writing a questionnaire maker app and I would need a versatile component
which could render either a list/menu/checkbox/radio/text depending on
type/style attribute.
I see 3 solutions : component binding, facelets component or JSF component.
Component binding is deprecated in
43 matches
Mail list logo