[jboss-user] [JBoss Seam] - Re: How are you handling login / registration redirects?

2007-01-26 Thread Basel
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=bbop=viewtopicp=4007129#4007129 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4007129

[jboss-user] [JBoss Seam] - Re: using links with themeSelector instead of selectOneMenu

2006-11-05 Thread Basel
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: | component name=themeSelector | property name=availableThemes | valueoriginal/value |

[jboss-user] [JBoss Seam] - Re: using links with themeSelector instead of selectOneMenu

2006-11-04 Thread Basel
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

[jboss-user] [JBoss Seam] - Re: Still have issues with my installation

2006-11-04 Thread Basel
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=22866package_id=193295release_id=457191 View the original post :

[jboss-user] [JBoss Seam] - Re: using links with themeSelector instead of selectOneMenu

2006-11-03 Thread Basel
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: | c:forEach items=#{themeSelector.themes} var=thm | h:commandLink action=#{themeSelector.select}

[jboss-user] [JBoss Seam] - Re: ui:repeat shows only one item with high conversation sta

2006-09-10 Thread Basel
Associated JIRA issue: http://jira.jboss.org/jira/browse/JBSEAM-350 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3970600#3970600 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3970600

[jboss-user] [JBoss Seam] - Re: The link element of an RSS feed does not get rendered pr

2006-09-07 Thread Basel
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=bbop=viewtopicp=3970040#3970040 Reply to the post :

[jboss-user] [JBoss Seam] - Re: How to get request object, for example the servletPath

2006-09-07 Thread Basel
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(); | }

[jboss-user] [JBoss Seam] - Re: ui:repeat shows only one item with high conversation sta

2006-09-07 Thread Basel
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=bbop=viewtopicp=3970176#3970176 Reply to the

[jboss-user] [JBoss Seam] - ui:repeat shows only one item with high conversation state n

2006-09-05 Thread Basel
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

[jboss-user] [JBoss Seam] - The link element of an RSS feed does not get rendered proper

2006-09-02 Thread Basel
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: | ?xml version=1.0? | rss version=2.0 |

[jboss-user] [JBoss Seam] - Re: 2(3?) step registration process

2006-08-29 Thread Basel
Take a look here: jbossworld-seam-lab/seam-lab/README/index.html View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3967992#3967992 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3967992

[jboss-user] [JBoss Seam] - Re: servlet in seam application

2006-08-15 Thread Basel
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, |

[jboss-user] [JBoss Seam] - Re: servlet in seam application

2006-08-15 Thread Basel
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() !=

[jboss-user] [JBoss Seam] - Re: servlet in seam application

2006-08-15 Thread Basel
| em.joinTransaction(); | em.createQuery(query) | .setParameter(param1, param1) | .getSingleResult(); | utx.commit(); | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3965231#3965231 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Why is there a FacesContext in org.jboss.seam.core?

2006-08-15 Thread Basel
| FacesMessages.instance().add(Your message); | Note the s at the end of FacesMessages. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3965233#3965233 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3965233

[jboss-user] [JBoss Seam] - How can I get jsf error pages to work similar to the blog sa

2006-08-12 Thread Basel
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.

[jboss-user] [JBoss Seam] - Re: Graceful logout and friendly login ? How to?

2006-08-11 Thread Basel
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. |

[jboss-user] [JBoss Seam] - Re: The pageflow attribute of @Begin not always processed pr

2006-08-11 Thread Basel
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 :

[jboss-user] [JBoss Seam] - Re: Entity Bean extends SelectItem

2006-08-11 Thread Basel
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

[jboss-user] [JBoss Seam] - Graceful logout and friendly login ? How to?

2006-08-10 Thread Basel
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

[jboss-user] [JBoss Seam] - Have more than one page action for the same view-id

2006-08-04 Thread Basel
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. | page view-id=/paper.jsf action=#{loginAction.userChallenge}/ | page

[jboss-user] [JBoss Seam] - Re: Have more than one page action for the same view-id

2006-08-04 Thread Basel
Don't worry about the missing a in page view-id=/paper.jsf ction=#{paperAction.setPaper}/ It is only a typo. The actual pages.xml is correct. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3963088#3963088 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Have more than one page action for the same view-id

2006-08-04 Thread Basel
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=bbop=viewtopicp=3963200#3963200 Reply

[jboss-user] [JBoss Seam] - Disable converters for request parameters in the URL

2006-08-04 Thread Basel
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

[jboss-user] [JBoss Seam] - Cannot get @In and @Out to work with a stateless component

2006-07-28 Thread Basel
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

[jboss-user] [JBoss Seam] - Re: Cannot get @In and @Out to work with a stateless compone

2006-07-28 Thread Basel
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

[jboss-user] [JBoss Seam] - Re: Seam web services (RESTful ones)?

2006-07-24 Thread Basel
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

[jboss-user] [JBoss Seam] - Re: Seam - iterator tag?

2006-07-24 Thread Basel
The ui:repeat 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=bbop=viewtopicp=3960573#3960573 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Patterns and Seam

2006-07-23 Thread Basel
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 :

[jboss-user] [JBoss Seam] - Re: Seam web services (RESTful ones)?

2006-07-23 Thread Basel
[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=bbop=viewtopicp=3960173#3960173 Reply to the post :

[jboss-user] [JBoss Seam] - Re: create method not found + @Factory

2006-07-15 Thread Basel
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=bbop=viewtopict=72267 thread used an @Out annotation. View the original post :

[jboss-user] [JBoss Seam] - Re: create method not found + @Factory

2006-07-14 Thread Basel
[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 :

[jboss-user] [JBoss Seam] - Re: remove beans from seam contexts

2006-07-12 Thread Basel
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=bbop=viewtopicp=3957248#3957248 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Accessing a protected JSF page causes

2006-07-11 Thread Basel
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=bbop=viewtopicp=3957222#3957222