Does redirect.captureCurrentRequest() capture request parameters which are part
of the URL as well?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007129#4007129
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007129
__
I am lost Gavin. Are you suggesting that I used a page parameter for every page
in my web application?
It would be nice to have the following in components.xml:
|
|
| original
| dark
| custom
|
| dark
|
Here, the currentTheme can
You might need to get jems-installer-1.2.0.BETA3.jar since JBoss-4.0.5-GA does
not have ejb3 support. You can get it from here:
http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=193295&release_id=457191
View the original post :
http://www.jboss.com/index.html?module=bb&op=v
Gavin,
Could you please be more specific? Does that mean I'll have to add
@RequestParameter to the getTheme method of the current ThemeSelector in Seam
1.1 and recompile it?
What I am trying to do is to list the themes in one single line as links
instead of having them in a drop down menu with
Where can I specify that the value of themeSelector.theme be set to thm.value?
How would using h:commandLink be different from s:link and h:outputLink?
Here is what I have currently:
|
|
|
|
|
|
I am not sure what the value of the name attribute of f:param shoul
How can I set the value of themeSelector.theme when using s:link or
h:outputLink? selectOneMenu works fine but it does not fit that well with
currnt look and feel of my website. It would be nice to have links as follows:
Themes: original | dark | custom
Using c:forEach I managed to get the name
Associated JIRA issue: http://jira.jboss.org/jira/browse/JBSEAM-350
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970600#3970600
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970600
___
I am not that experience with Jbpm but to have Seam us an extended persistence
context, add the following to faces-config.xml:
|
|
| org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener
|
|
|
Don't forget to remove the other PhaseListener,
org.jbo
I would appreciate a comment on this guys. It is kinda embarrassing to wakeup
in the morning just to find an email saying that the gallery section of the
site is not working again.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970176#3970176
Reply to the po
Try not to use the Servlet API unless you have. Try something similar to this:
| @In
| private FacesContext facesContext;
| private HttpServletRequest request;
|
| public void initComponent(){
| request =
(HttpServletRequest)facesContext.getExternalContext().getRequest();
| }
Okay, but where should I report this issue? Do they have a forum, JIRA or
something similar. Please don't tell me that the only thing they have is the
mailing lists.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970040#3970040
Reply to the post :
http://ww
Hello,
I have a ui:repeat tag in items.jsf that gets an ArrayList from a stateless
session bean after performing a search based on a pattern entered by the user.
This works just fine, however, when the conversation id goes up items.jsf shows
only one item even though the database returns more t
I am trying to do something similar to the RSS sample as in fisheye of JBoss
Seam:
http://fisheye.labs.jboss.com/browse/JBoss/jboss-seam/examples/blog/view/index.rss
However, the link elements do not get rendered properly as you can see here:
|
|
|
| Sample Feed
|
Take a look here:
jbossworld-seam-lab/seam-lab/README/index.html
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967992#3967992
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967992
__
Take a look at Seam hands-on lab from JBoss World given by Norman Richards.
http://blog.hibernate.org/cgi-bin/blosxom.cgi/Gavin%20King/seam-lab.html
let me know if you have any questions.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967762#3967762
Reply to
| FacesMessages.instance().add("Your message");
|
Note the s at the end of FacesMessages.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965233#3965233
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965233
___
| em.joinTransaction();
| em.createQuery(query)
| .setParameter("param1", param1)
| .getSingleResult();
| utx.commit();
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965231#3965231
Reply to the post :
http://www.jboss.com/index.h
With EJB3 the application server makes sure that your methods are executed
within a transaction. This is not the case with Servlets so you have to start
and commit the transaction yourself. Here is the code:
| UserTransaction utx = Transactions.getUserTransaction();
| if(utx.getStatus() != S
Injecting an EntityManager into a servlet is not recommended since the former
is not thread safe. Here is what I do in my current web application:
| @PersistenceUnit(name = "myPU")
| private EntityManagerFactory factory;
|
| protected void doGet(HttpServletRequest request,
| HttpS
In my case I get "Exception Processing ErrorPage" when I try to access a jsf
page that does not exist such as doe.jsf.
According to the following post on one of the mailing lists, having jsf/xhtml
to handle error pages is not possible.
http://mail-archives.apache.org/mod_mbox/myfaces-users/20060
Let me clarify few things
First, @Local is used to mark your local interface and @Entity is used to mark
an implementation of the interface. So using them together does not make much
sense.
Second, SelectItem is a model that holds the state of a single item of a JSF
component. It is meant for JS
Try adding @Name("authorUser") to your entity.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964570#3964570
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964570
___
jboss-us
"rlhr" wrote : Now if the jsp calls the testOne method which in turn calls the
delagate methods, then the pageflow is not started.
Oops! I did not notice that the testOne method calls the delegate method. But
even if that is the case, you are supposed to start the pageflow as a result of
a page
Do you have any component that is named "names" or "authorUser" using the @Name
annotation?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964563#3964563
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964563
__
No it is not a bug, here is a quote from the docs anonymous wrote : We "start"
a jPDL-based pageflow by specifying the name of the process definition using a
@Begin, @BeginTask or @StartTask annotation
| @Begin(pageflow="numberguess")
| public void begin() { ... }
View the original post :
h
Update: I managed to get the view id using two independent approaches:
The first approach gets the view id from the request parameter map using the
key "jsf_viewid". I am not sure whether this key is standard or specific to an
implementation of JSF.
| @In(value="#{facesContext.externalContext.
Injecting UIViewRoot does not work.
| Caused by: org.jboss.seam.RequiredException: In attribute requires value
for component: loginAction.view
| at org.jboss.seam.Component.getInstanceToInject(Component.java:1382)
| at org.jboss.seam.Component.injectFields(Component.java:102
In short, how can I keep track of the GET request parameters and the URL when
users login and logout?
For instance, blogEntry.jsf depends on a request parameter called id and a page
action entryAction.setEntry. Moreover, login and logout are performed using the
two page actions loginAction.logi
A factory method is called when an EL tries to access a Seam component that is
not set. It does not matter where that factory method exist.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963360#3963360
Reply to the post :
http://www.jboss.com/index.html?modu
How can I disable auto convertion for request parameters that are of type
Integer? I'm not sure but it looks like that Seam perform the conversion during
the render response phase. In my component I have this:
| @RequestParameter("pn")
| @Out(value="pn", required=false)
| private Integer
Hi Gavin,
Do you have an plans to add this feature in the current CVS or future releases?
Having more than one page action would simply a lot of things especially for
restful application.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963200#3963200
Reply
Don't worry about the missing a in
It is only a typo. The actual pages.xml is correct.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963088#3963088
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963088
___
How can I have more than one page action for the same view-id? Currently only
the last action in the list is executed, in this case setPaper. If the two
actions are switched, userChallenge gets executed.
|
|
|
Is there another approach?
View the original post :
http://www.jboss.com/
What should I do to fix it? The action is stateless in nature in that the user
uploads a file with some details, in this case newPaperDetails, and store them
in the database.
The reason I used @Out and initPaperDetails is because that the newartwork.jsf
page complains about not being able to fi
I did that already and I got the same error message shown above.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961609#3961609
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961609
__
I have an Entity bean called PaperDetails and a page called newartwork.jsf
which can be used to create a new PaperDetails.
| @Entity(name="gs_paper_details")
| public class PaperDetails implements Serializable{
| @Id
| private int id;
|
| @NotNull
| private Str
The provider element of persistence.xml
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960575#3960575
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960575
___
jboss-user mail
what do you have as the value of under your persistence.xml? Can you show the
complete file?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960574#3960574
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960574
The needs a list of objects to iterate over, this has nothing to do
with support. You can find an example is the dvd-store sample application
bundled with Seam.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960573#3960573
Reply to the post :
http://www.jb
"[EMAIL PROTECTED]" wrote : We are already well advanced on a Seam book (it is
at the review process)
|
It would be nice if we could participate in the review process.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960334#3960334
Reply to the post :
http:
Sorry for not being clear.
After taking a closer look at web.xml I noticed that the FacesServlet handles
all the requests to /seam/. So this applies to index.rss as well, please
correct me if I am wrong.
I got confused becuase in my current setup I have *.jsf mapped to the
FacesServlet. So I sta
"[EMAIL PROTECTED]" wrote : (I already implemented an RSS feed in the blog
example)
Does SeamListener handle the request to index.rss and parse the EL elements?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960173#3960173
Reply to the post :
http://www.jbos
I would love to see a chapter or even a section dedicated to design patterns in
the upcoming Seam Book. Discussing new patterns specific to Seam and why some
of the current J2EE patterns are obsolete is definitely a plus.
View the original post :
http://www.jboss.com/index.html?module=bb&op=vie
I have an application that works just fine with JSF 1.2 RI. However, updating
to the new release, jsf-1.2_01-b04-FCS, caused problems with some pages. The
pages are rendered but with no data. JBoss console does not show any error
messages so I am not sure what the problem is.
Please let me know
Thank you so much guys. It finally worked ^_^
Here is what I did:
1. Add @Out(value="newEntry", scope=ScopeType.CONVERSATION) annotation to the
instance variable Entry. It won't work if you do not specify a scope.
2. Remove the @Factory("newEntry") annotation from createNewEntry method.
3. Move t
Isn't that being taken care of by the @Factory("newEntry") annotation? Neither
the jbossworld-seam-lab example nor Gavin's
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=72267 thread used an
@Out annotation.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewto
jBPM pageflow solves the problem of backbutton. Take a look at Chapter 4 of the
documentation.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958287#3958287
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958287
___
Could someone please help me with getting a component initialized properly? I
have read so many posts and tried many solutions with no avail.
Few things that I have leaned from the posts:
1. @Begin does not start a new conversation. It only promotes a short-running
conversation to a long-running
"[EMAIL PROTECTED]" wrote :
| I think the problem is that your @Factory method is not declared on the
local interface.
Yeah that is right, I forgot to add the createNewEntry method to the local
interface. Thank you Gavin ^_^
View the original post :
http://www.jboss.com/index.html?module=bb&
Hello,
I am trying to cerate a new entry, entity bean, using three pages with the help
of jBPM similar to the example illustrated in jbossworld-seam-lab.zip file.
These three pages are going to be used in a RESTful application that follows
the blog example.
So, I have a data entry page called
Try setting the variable to null:
Contexts.getSessionContext().set("user", null);
You can read more about this under section "2.1.8. Context variables" in the
documentation.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957248#3957248
Reply to the post :
Okay I will just ignore them. What should I do about the 404 status error?
anonymous wrote : 5. Upon entering valid username and password, the server
returns "HTTP Status 404 - /seam_01/pro/guess.jsf"
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957222#3957
Hey Gavin,
What about the FacesELResolvers error message?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956832#3956832
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956832
53 matches
Mail list logo