FacesContext context = FacesContext.getCurrentInstance();
Gives me a null pointer...
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4123227#4123227
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123227
in a @WebRemote method i have...
FacesContext context = FacesContext.getCurrentInstance();
Which throws a null pointer...
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4123229#4123229
Reply to the post :
Is there a way to add a request parameter from one page to another within the
app?
Here is my problem...
I have 2 pages (A and B), the B page has a param set up in the pages xml that
brings in a ID, which is used in a factory method.
This works great...
Now, I have a link on page A that
Is it possible to have a link that goes directly to a XHTML page in my seam
application and pass a variable?
Something like...
http://server/app/pageName.seam?variableName=NAMEamp;cid=32
How would I grab it using facelets?
Thanks
indy
View the original post :
I have a Data Model and some input boxes on a page.
Select a record from the Data Model and the input boxes is populated with the
records information.
Change the data in the input boxes and hit a Update button.
Update the record in the database and then reload the Data Model.
All this works
Very nice...
I am new to the Events model...
Thanks!!!
Indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4112362#4112362
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112362
ok...i need some help with your suggestion pete...
Here is how I am Outjecting the datamodel into even scope...
|
| @Name(usermanager)
| @Stateful
| @Scope(SESSION)
| @Restrict(#{identity.loggedIn})
| public class UserManager implements UserManagerInterface {
|
|
Bean...
|
| @Name(usermanager)
| @Stateful
| @Scope(SESSION)
| @Restrict(#{identity.loggedIn})
| public class UserManager implements UserManagerInterface {
|
| @DataModel(users)
| private ListUser users;
|
| @Factory(users)
| public ListUser getUsers()
anyone?
I tried @DataModel(scope=ScopeType.PAGE) and it still doesnt seem to be
working...
Am I doing something wrong?
This seems pretty straight forward...
Reload the Data Model with every time the page is rendered...
View the original post :
if I try scope=ScopeType.PAGE on the Factory, I get some long error about
injected the user property. I did some research in the Forums and someone
said to never do scope on the Factory annotation...
So, does the ScopeType.PAGE work for DataModel. I am assuming not...
Well, it would be cool if
I current use the FacesContext and open a Jasper Report PDF in the current
browser session, I would like to open the report in a new browser window
(session).
Can someone help?
Thanks
indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105048#4105048
Ok Seam pros, what is the recommended reporting engine?
I have worked a little with Jasper reports. Building servlets that run the
reports...
My question is, can I hook these servlets into the Seam role based security?
Or, should I use a different reporting engine?
Flex?
thanks
indy
View
Can I have components from both libraries on the same Faclet page?
Example:
Can I have a ICEFaces Calender on a RichFaces Tab Panel?
Thanks
Indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4100362#4100362
Reply to the post :
Download latest build from web site. Explode is, open a command box and go to
the root directory and type seam setup.
Get the following error...
anonymous wrote :
|
| C:\jboss-seam-2.0.0.CR2seam setup
| Buildfile: C:\jboss-seam-2.0.0.CR2\seam-gen\build.xml
|
| init:
|
I will just wait for the GA release...
Thanks again for all the hard work guys
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094095#4094095
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094095
Whats the best way to upgrade from 2.0.0 CR1?
Thanks
Indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092136#4092136
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092136
___
I have a POJO that needs to store date information.
But, I don't want to store the Java type Date in my database, I prefer to
store my date in the database as Java type Long.
This is all fine and good, but when i display this POJO, i dont want the Long
number displayed for my date, I want a
Thanks for the info guys!!
This helps a ton...
Indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4084084#4084084
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084084
___
Seam: 2.0.0BETA1
JBoss: 4.2.0
Facelets
I am having problems with a very simple datatable.
Here is my code
Bean
|
| @Name(usermanager)
| @Stateful
| @Scope(SESSION)
| @Restrict(#{identity.loggedIn})
| public class UserManager implements UserManagerInterface {
|
| @In
JBoss AS: 4.2.0
Java: 1.6.0_02
Seam: 2.0.0BETA1
I don't know if this is a Seam error or RichFaces...
I have downloaded the most recent RichFaces and Ajax4Jsf jars and replaced them
within my Seam Web App's WEB-INF/lib. It was just released...
I get the following...
anonymous wrote :
|
|
Here is my configuration...
Seam - 2.0.0 Beat 1
Java - 1.6.0_02
MySQL - 5
Eclipse - 3.3
TestNG - Newest Eclipse Plug-in
Here is what i did..
1. Use Seam Gen to create a project
2. Moved the Booking example code over to this project
3. Everything builds and the application runs just fine
4. Try
creative777,
Thanks for the help...that is exactly what i need...
I will try it out and let you know how it goes...
thanks
indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4075499#4075499
Reply to the post :
ThorntonD,
Here is what I did...
http://www.jboss.com/index.html?module=bbop=viewtopict=115156
Its not the most elegant...but the basic idea is there...
thanks
indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4075500#4075500
Reply to the post :
I get the following error running tests with the Booking Example...
* Updated the jboss-embedded-all.jar for java 1.6
* Running Seam 2.0
* Inside Eclipse
anonymous wrote :
|
|[testng] *** CONTEXTS IN ERROR: Name - Error
|[testng] jboss.jca:name='jms-ra.rar',service=RARDeployment
Ok...downloaded embedded-jboss-beta2...
Extracted it.
Deleted the booking/bootstrap
Copied the embedded-jboss-beta2/bootstrap to booking/bootstap...
I am running MySQL 5...
I now get this error...
anonymous wrote :
|
| [testng] ERROR 17-08 11:57:05,296
Ok...here is my configuration...
Java- 1.6.0_02
MySQL - 5 (Community Edition)
Eclipse - 3.3.0
Seam - 2.0.0 BETA1
JBoss AS - 4.2.0
Embedded JBoss Beta 2
My problem seems to be with the jboss-local-jdbc.rar/META-INF/ra.xml file...
ursway, can you post yours?
I would
Portal: 2.6.1
JBoss AS: 3.4
MySQL
I want to write a portlet that authenticates and authorizes the user.
I can authenticate just fine...
|
| UsernamePasswordHandler handler = new
| UsernamePasswordHandler(this.username, this.password.toCharArray());
|
Thats the one i have been trying to follow...
I am very new to this so I apologize...
I get the user authenticated and get their Principals (Roles)...
What I don't understand is how to tell the Portal framework that this user is
Authenticated.
I tried using the JACC Portal Permission factory
Ok...free ice cream for anyone that helps me...
:)
indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4071985#4071985
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4071985
___
oki cant even get authenticated...
|
| try{
|
| UsernamePasswordHandler handler = new
|UsernamePasswordHandler(admin, admin.toCharArray());
|
| LoginContext lgnctx = new LoginContext(portal, handler);
|
oki am a dummy...
I had a conflicting Hibernate3.jar in my app that didnt play nice with the
Hibernate3.jar in the default/lib...
I get authenticated now...
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072188#4072188
Reply to the post :
Sohil,
You said...
anonymous wrote :
|
| why can't you re-use JBoss Portal's JAAS mechanism and just plug in your
own LoginModule for your application specific authentication logic?
|
|
I would LOVE to know how to do this...
Is there a wiki reference or somewhere you can point me?
ok...I need some help...
JBoss AS: 4.0.5
JBoss Portal: 2.6.1
What I am trying to do
--
Create a JSF portlet that takes a User name and password from a user and
authenticates the User through the JAAS framework. This would also include
setting the context path to /auth
I will also be playing with this...
Thanks so much!!
indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4071172#4071172
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4071172
___
forgot somthing
portlet-nameUserManagerPortlet/portlet-name
trans-attributeRequired/trans-attribute
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4071352#4071352
Reply to the post :
ok...got it to work...here is how I did it using JSF...
Get the userModule through JNDI
|
| userModule = (UserModule) new
InitialContext().lookup(java:portal/UserModule);
|
|
Get the user by using its user idNOT user name
DO THIS
|
| User test =
ok...i get the userModule the following way...
|
| userModule = (UserModule) new
InitialContext().lookup(java:portal/UserModule);
|
|
Thanks
indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4070623#4070623
Reply to the post :
I will just wait a bit
Thanks Thomas...
Indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4070638#4070638
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4070638
___
if anyone is curious, I do have Tomahawk working inside the portlet...
Its a nice alternative...
Thanks
indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4070641#4070641
Reply to the post :
I am also interested if this does or does not work in a portlet...
I have been trying to get this to work with no success
Ajax4JSF?
RichFaces?
Thanks
Indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4070612#4070612
Reply to the post :
Here is the code
|
| User test = userModule.findUserByUserName(admin);
|
|
Here is the error
|
| java.lang.ClassCastException: org.hibernate.hql.ast.HqlToken cannot be cast
to org.hibernate.hql.ast.HqlToken
|
|
I do not get that error running the exact same code
Portal: 2.6.1
JB AS: 4.0.5
MySQL: 4.2
I am still trying to understand the security...
For some reason i get a Hibernate class cast exception when trying to access
the UserModule from a portlet in a session that is not currently
authenticated...
I am trying to implement a Forgot My Password
I would like to get the complete registration from the portlet...
Going to keep trying...if anyone gets the complete registration to work...POST
IT... :)
thanks
Indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4070305#4070305
Reply to the post :
Can someone please tell me how to do this?
I would love to know how to contact JAAS from my portlet
Thanks
Indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069780#4069780
Reply to the post :
Where would I change the context for the root.war?
There is web.xml in the WEB-INF directory inside the war, but there isnt a
context-root xml element.
Thanks
Indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4026286#4026286
Reply to the post :
I added a jboss-web.xml and added context-root/root/context-root within the
root.war/WEB-INF
Then changed the jboss-web.xml under the portal-server.war\WEB-INF to
context-root/context-root
This removed one of the portals...
Is was...
|
| http://localhost:8080/portal/portal/MyPortal
|
It's time for another dumb question from Indy...
Portal: 2.4
MySQL
JB AS: 4.0.5
I have a custom Portal that I access through the following URL
http://localhost:8080/portal/portal/MyPortal
I would like to configure it to be...
http://localhost:8080
I tried changing the jboss-web.xml, but
JBoss Server 4.0.5 GA
MySQL
JBoss Portal 2.4
My Custom Portlet is trying to determine if an object should be available to a
user. Currently, it is always returning true...
In my jboss-portal.xml
|
| portlet
| portlet-nameMyPortlet/portlet-name
| transaction
|
That was it..
I just wasnt paying attention...
Thanks for the quick response...
Indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4017229#4017229
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4017229
OkFor the life of me I can not figure out where to put my Applet jar...
Can anyone help?
Here is my JSP
|
| %@ page language=java
extends=org.jboss.portal.core.servlet.jsp.PortalJsp %
| %@ taglib uri=http://java.sun.com/portlet; prefix=portlet %
| %@ taglib
JBoss Portal - 2.6
I am trying to upgrade my 2.2 portal theme to 2.6 and I am having problems...
Here is myLayout.war...
myLayout.ear
/META-INF
application.xml
/myLayout.war
Yep, thats it...
Thanks for the help...
Indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3992775#3992775
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3992775
___
jboss-user
JBoss Portal 2.2
How can I remove the Don't have an account yet? You can
create one text from the default UserPortlet?
I want to use this portlet, but we do not want user's creating thier own
account, we want the admins to do this
Thanks
Indy
View the original post :
JBoss Server : 4.0.3 SP1
JDK : 1.5
OS : Windows Server 2003
I an trying to get JBoss to run on a Winodows Server 2003 box. When I try and
start it up using run.bat, I get this...
C:\jboss-4.0.3SP1\binrun.bat
\Java\jdk1.5.0_09\lib\tools.jar was unexpected at this time.
There are 2
My bad...
You are correct.
I was using datatable.
I was just using the code example from the Tomahawk example...
Thanks
Indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3983820#3983820
Reply to the post :
I got 2 quick questions...
PORTAL VERSION: 2.2.1 SP3
1) I have deployed a MBean Service. This was done by modifying the
jboss-service.xml and jboss-portlet.xml. Both files under jboss-portal.sar. Is
there a way to deploy my MBean Service by not changing anything under
jboss-portal.sar but
I get the following error when trying to create a Hibernate Session factory...
anonymous wrote :
| 08:48:18,453 INFO [C3P0Registry] jdk1.5 management interfaces
unavailable... JMX support disabled.
| java.lang.ClassNotFoundException: No ClassLoaders found for:
I get the following...
anonymous wrote :
| The absolute uri: http://java.sun.com/blueprints/ajax/progress-bar cannot
be resolved in either web.xml or the jar files deployed with this application
|
I have my progressbar.tld in portal-core.war\WEB-INF and the jar files in
Has anyone got Sun's BluePrints AJAX Components running inside a Portlet? Using
JSF?
I would love to use the progress box...
Thanks
Indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3968974#3968974
Reply to the post :
Anyone have an answer for this?
Sun's BluePrints AJAX Components?
Anyone? :)
thanks
Indy
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3968975#3968975
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3968975
Does anyone have a example of a portlet running an applet inside?
My applet runs just fine with a static html file on the JBoss server...
But, when I try to run the exact same applet within a JBoss portlet I get
java.lang.ClassFormatError: JavaClock (Bad magic number)
at
61 matches
Mail list logo