[jboss-user] [JBoss Seam] - Re: h:commandLink behaviour - decode, encode

2007-08-15 Thread msznapka
I forget my configuration:
jboss-seam-2.0.0.BETA1
jboss-4.2.0.GA
facelets-1.1.13

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074282#4074282

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074282
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: h:commandLink behaviour - decode, encode

2007-08-15 Thread [EMAIL PROTECTED]
This is just the way the JSF lifecycle works.  Make sure not to do a lot of 
work in a getter.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074325#4074325

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074325
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: h:commandLink behaviour - decode, encode

2007-08-15 Thread msznapka
Thank you for answer Pete

So you think that loading data from database should be done inside action 
method (here doSomething)?

What about first page load, where no action was fired?

first page load - getData
action load - getData, action, getData

For information - this is event scoped seam component and data are loaded from 
database. Such loaded data depends on your action, if no action, than load 
default data.

So here is code:

  | @Name(event)
  | @Scope(EVENT)
  | public class Event {
  |ListItem data = null;
  |getData ... return data;
  |setData ... this.data = data;
  | 
  |doSomething() {
  |  if(linkParameter == null)
  | loadDefaultDataFromDatabase();
  |  else
  | loadDataFromDatabase(linkParameter);
  |}
  | ...
  | 

so if you access page for first time, null data are returned, that is why i 
thought that loading data must be inside getters methods

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074345#4074345

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074345
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: h:commandLink behaviour - decode, encode

2007-08-15 Thread [EMAIL PROTECTED]
This is what @Factory is for.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074346#4074346

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074346
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: h:commandLink behaviour - decode, encode

2007-08-15 Thread msznapka
It works, thanks a lot!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074403#4074403

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074403
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user