These are questions I have regarding the tutorial.  They may be answered later 
in the tutorial (in fact I know some of the answers now), but they caused 
confusion for me while I read the tutorial because they were unclear at that 
time.

Although I'd like to get answers in this forum, my goal was to give you some 
feedback on the tutorial document from someone with no JSF/EJB3/Seam experience.

Section numbers are from the PDF version of the "Reference Manual" with the 
tutorial embedded in it.

Section 1.2.2  ("How it works")  I'm confused about the initial rendering of 
the register.jsp page.  What is the entry point?  That is, the index.html 
forwards (redirects?) to a "register.seam" url.  How does it know to 
render/display the JSP file?  Does it just look for a jsp with the same name? 
(I can't find any references to "register.jsp" in any files in the project, so 
I'm assuming it's magic.)  If I had wanted to go to a java bean first, before 
displaying the JSP, what url would I have put in the index.html file.

Section 1.4 (ToDo list) I'm just generally confused about how the jsp gets the 
correct set of tasks from the list of tasks.  There seems to be some magical 
component named "taskInstanceList" that isn't referenced anywhere in the code 
except for the todo.jsp file.  It somehow has a list of only the "todo" tasks, 
but what would happen if there are other process definitions?  For example, the 
login.java login() method goes directly to the todo.jsp page, without any 
reference to a particular process definition.  Then the jsp page grabs what 
appears to be the list of all tasks...

Also, the "update" action referenced from the JSP - what's up with that?  Is 
that a magic action?  Is it just refreshing the jsp page or is there something 
else happening?

Incidently, it's annoying that the previously added todo item stays in the 
input field.  While I can see why that happens, I presume that since I'm not 
using an instance variable on my action bean I can't set it to null after the 
"createTodo()" method.

Sigh - I assume that all this will be cleared up in later examples - I'm just 
frustrated by the unkowns.

Section 1.5 - I noticed that I can submit the page by hitting the enter key but 
it just reloads the page.  Interestingly, it sort of submits the form, as it 
updates the "higher/lower" display.  However, it doesn't update the other 
messages or the number of guesses remaining.  I think that means that it's 
updating my bean's attributes based on the form inputs, but not calling the 
"guess" method.  I assume there's a way in JSF/Seam to handle the form 
submission via the enter key, since it's a common feature of webapps.




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960832#3960832

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960832
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to