"hubaghdadi" wrote : Well, I think you will kill me soon :)
| Login page for the public contains: username and password fields.
| Login page for the admin contains: EmployeeID only
| Two different pages dude :D
I still think my method would work, both different pages can use the same
Authent
Oh right, I see what you're trying to do now :-)
I think what I would do is take the username / password and in the Authenticate
method try and validate it as both a user and an admin and then set the role to
whichever one it validates as.
Obviously the one assumption here is that there will ne
I use Roles for this situation. Presumably you have some field in the database
which indicates if someone is a user or an admin. If so then you can add an
appropriate role in the Authenticate method of the Authenticator and have
something like this in your login.page.xml:
|
|
|
Unfortunately that didn't work, I get the error:
java.lang.IllegalArgumentException: no such setter method:
org.jboss.seam.wiki.core.ui.WikiUrlRewriteFilter.disabled
I also tried removing the line from
build.xml but when I do this there's no errors starting the server but I get an
Error 404 wh
For the Wiki example there's no UrlRewriteFilter section in web.xml, but there
was something in Components.xml. I tried removing the following code from
Components.xml:
|
| logLevelWARN
| statusEnabledfalse
|
|
But then when I tried t
I'm trying to gain inspiration from the Seam examples (the Wiki one in this
case) but it would be handy if I could see the actual URLs to help me figure
out in my head what's going on. What's the simplest way to turn off the
UrlRewrite functionality so I can see the bare URLs?
Thanks!
View
So I've been digging about in my code and have discovered that the reason for
these queries is not related to web.xml, it's just coincidence that similar
queries are defined there. It's actually related to a particular Entity bean
(and Entity beans in general I guess). I run a query which return
I've been looking at the console log for my site and I've notice that the
framework:entity-queries from web.xml are being called on some pages where
there is no reference to the query name. It seems to only happen the first time
that the page is loaded. I'm wondering if this is normal behaviour
If you use entityManager.merge(pojo) then it returns the persisted Pojo object
from which you can get the ID.
So, for example, you can do
Pojo pojo = new Pojo();
| //Fill pojo with info
| Pojo pojo2 = entityManager.merge(pojo);
| pojo2.getId(); //There it is
Actual code might need to
I'm trying to map a OneToOne relationship in a legacy database. The problem I
have is that I keep getting the following error:
javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong
column type: LocationID, expected: tinyint
| at
org.hibernate.ejb.Ejb3Configuratio
Yes sorry, I meant the hashcode. Overriding the two methods as suggested fixes
the problem nicely. Thanks for the help.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095707#4095707
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mod
I have a problem with a h:selectOneMenu using a s:selectItems list. The code is:
|
|
|
|
The problem is that when I try and save the value to the database it get's
correctly saved in terms of the database structure (i.e. the correct foreign
keys) but when I come back to the
I managed to fix my error by explicitly naming the bean using the @Name
annotation. In the past Seam has inferred the bean name from the class name
(i.e. they are the same) but it appears this is no longer the case?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic
I get the same problem after upgrading from Seam 2 Beta to CR1. I also the
same error for @Out annotated variables too. The full error trace is:
14:25:21,093 ERROR [SeamPhaseListener] uncaught exception
| javax.el.ELException: javax.ejb.EJBTransactionRolledbackException: In
attribute requires
I'm sure this must be fairly trivial but I can't seem to get it to work (too
late in the day I think :) ). I want to link the value of a radio button set to
a value in a foreign table. The problem I seem to be having is that initially
there is no value set so there is no corresponding row in the
Not sure if it's the same cause but I had a
java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.
error when trying to update Hibernate and it turned out to be that my update
method was to rename the old jar file (e.g. add an extension of .old) then copy
the new file across.
Ah ignore my last post then :-) Glad you got it working.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072618#4072618
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072618
__
If the h:column is part of a h:dataTable then the h:form tags need to be
outside the h:dataTable tags. Could that be your problem?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072615#4072615
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=
OK so assuming that athleteList.xthml is correctly generating a list of athlete
objects I would change your s:link to be something like:
| Calendar
|
|
and create a corresponding method in the backing bean:
public String selectAthlete(Athlete athlete)
| {
| this.athlete
I don't use seam-gen much so can't really imagine that page :-)
It seems like you're passing the athleteID to workoutList.xhtml. That's not the
same as passing an instance of athlete, so unless something happens in
workoutList.xhtml to convert the ID back to an instance of Athlete there's no
'a
One problem is that the @Out annotation should be in the code where the athlete
was originally selected. How is the athlete that you want to upload the workout
for selected?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072446#4072446
Reply to the post :
h
I'm trying to get the number of results from the following query (in
components.xml):
And this is in my page:
But when I try to load the page I get the following error (I also use the query
to create a dataTable and that works fine):
javax.faces.FacesException: javax.el.ELException: /clientS
Hi, I had the same problem and it appears to be that the date selection control
is rendered underneath the tabPanel. I solved the problem by updating to Seam
2.0.0(beta) which renders this correctly.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068214#4068
As there isn't a s:selectTime component does anyone have any experience of
solutions for inputting times? I'm trying to use two drop down lists (one for
hours one for minutes) but am having problems mapping that to a single time
field in the database.
View the original post :
http://www.jboss.
24 matches
Mail list logo