[jboss-user] [JBoss Seam] - Re: binding attribute doesnt work with Seam?

2007-10-13 Thread mnrz
I really stuck

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

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


[jboss-user] [JBoss Seam] - Re: binding attribute doesnt work with Seam?

2007-10-09 Thread mnrz
anybody can help me please?

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

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


[jboss-user] [JBoss Seam] - Re: binding attribute doesnt work with Seam?

2007-10-09 Thread swd847
Can you post the xhtml and the backing bean?

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

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


[jboss-user] [JBoss Seam] - Re: binding attribute doesnt work with Seam?

2007-10-09 Thread mnrz
the xhtml is already posted at first thread above and here is the backing bean:


  | @Stateful
  | @Name(userRegister)
  | @Scope(ScopeType.SESSION)
  | @Restrict(#{s:hasRole('Admin')})
  | public class UserRegisterAction implements UserRegister   {
  | 
  | private Log logger = LogFactory.getLog(UserRegisterAction.class);
  | 
  | private User tempUser;
  | 
  | private HtmlSelectOneMenu selectOneUser;
  | 
  | private SelectItem[] allUsers;
  | private ArrayListSelectItem allRoles;
  | private SelectItem[] allGroups;
  | private boolean newUser;
  | private Long selectedGroup = 0L; 
  | private String selectedUsername = 0;
  | private boolean reload = false;
  | private UIInput username;
  | private UIInput address;
  | private UIInput contactNo;
  | private UIInput mobilePhone;
  | private String verifyPassword; 
  | private String password;
  | 
  | @EJB
  | private UserDao userDao;
  | @EJB
  | private GroupDao groupDao ;
  | 
  | 
  | private ListString selectedRoles;
  | 
  | 
  | //constructors
  | public UserRegisterAction() {
  | logger.debug(constructing UserRegisterAction...);
  | 
  | }
  | 
  | @Factory(value = tempUser, scope = ScopeType.STATELESS)
  | public User loadUser() {
  | if(reload || tempUser == null) {
  | if(selectedUsername.equals(0)) {
  | logger.debug(instantiating a new User);
  | tempUser = new User();
  | verifyPassword = password = ;
  | selectedGroup = 0L;
  | }else{
  | logger.debug(loading User with username 
'+selectedUsername+');
  | tempUser = userDao.load(selectedUsername);
  | if(tempUser.getGroup() != null)
  | selectedGroup = 
tempUser.getGroup().getId();
  | verifyPassword = password = 
tempUser.getPassword();
  | selectedRoles = new ArrayListString();

  | for(UserRole r : tempUser.getRoles()) {
  | selectedRoles.add(r.getRoleName());
  | }
  | //setInputValuesWithUser();
  | }
  | }
  | return tempUser;
  | }
  | 
  | //private methods...
  | private void loadAllRoles() {
  | ListObjectMap list = null;
  | try {
  | list = 
ActionUtil.getClassResourceBundle().getList(AccessRole.class, new 
java.util.Locale(en));
  | } catch (Exception e) {
  | e.printStackTrace();
  | }
  | 
  | if(list != null) {
  | allRoles = new ArrayListSelectItem();
  | for(int i = 0;i list.size();i++) {
  | if(list.get(i).getValue() == null || 
list.get(i).getValue().equals(AccessRole.Unknown.name())) {
  | continue;
  | }
  | SelectItem item = new SelectItem();
  | item.setLabel(list.get(i).getMeaning());
  | item.setValue(list.get(i).getValue());
  | allRoles.add(item);
  | }
  | }
  | }
  | 
  | @SuppressWarnings(unchecked)
  | private void loadAllGroups() {
  | ListGroup groups = groupDao.loadAll();
  | if(groups != null) {
  | allGroups = new SelectItem[groups.size()+1];
  | allGroups[0] = new SelectItem(new Long(0),--not-specified--);
  | for(int i = 0;i groups.size();++i) {
  | SelectItem item = new SelectItem();
  | item.setLabel(groups.get(i).getName());
  | item.setValue(groups.get(i).getId());
  | allGroups[i+1] = item;
  | }
  | }
  | }
  | 
  | private void loadAllUsers() {
  | logger.debug(loading...  + userDao);
  | List users = userDao.load();
  | if(users != null) {
  | allUsers = new SelectItem[users.size()];
  | for(int i = 0; i  users.size();++i) {
  | SelectItem item = new SelectItem();
  | User u = (User) users.get(i);
  | item.setLabel(u.getUsername());
  | item.setValue(u.getUsername());
  | allUsers = item;
  | }
  | }
  | }
  | 
  | private void saveNewUser() {

[jboss-user] [JBoss Seam] - Re: binding attribute doesnt work with Seam?

2007-10-08 Thread mnrz
Hi friends,
there is something strange! I have 6 text box in my page 
username, password, password verify, phone no, address, mobile no

astonishingly, when I press Save button to update changes, at server-side only 
changes to last text box is being seen and others remained intact and when I 
substitute another text box say phone no with the last one (change their 
position) again only changes to last text box (phone no) is visible and the 
others have the same value they already had 

what's the problem? is this an issue with Seam?

thanks


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

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


[jboss-user] [JBoss Seam] - Re: binding attribute doesnt work with Seam?

2007-10-07 Thread mnrz
thanks matt, but I couldn't see any question regarding binding a component,
in both link, and also the second link is for 2 version of the Seam I am using 
1.1.6 and at the moment I can't upgrade to version 2.

thanks anyway

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

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


[jboss-user] [JBoss Seam] - Re: binding attribute doesnt work with Seam?

2007-10-07 Thread [EMAIL PROTECTED]
You can't bind to a CONVERSATION scoped backing component because the 
conversation context is not available in the RESTORE VIEW phase.

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

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


[jboss-user] [JBoss Seam] - Re: binding attribute doesnt work with Seam?

2007-10-07 Thread mnrz
[EMAIL PROTECTED] wrote : You can't bind to a CONVERSATION scoped backing 
component because the conversation context is not available in the RESTORE VIEW 
phase.

thanks christian, 
I put this as a FAQ in wiki page


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

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


[jboss-user] [JBoss Seam] - Re: binding attribute doesnt work with Seam?

2007-10-07 Thread mnrz
now that binding exception has been gone but new problem is that at server-side 
I get no changes and no value by binded components
I put following log at my backing bean

  | logger.debug(contactNo.getLocalValue()+ - 
+contactNo.getSubmittedValue()+ - +contactNo.getValue());
  | 

but two first methods return null and the last one (getValue) returns the same 
value that the component was set already and no changes of the user will be 
applied, what's the problem here?

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

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


[jboss-user] [JBoss Seam] - Re: binding attribute doesnt work with Seam?

2007-10-06 Thread matt.drees
Your issue is described in both the faq and the documentation.

http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamProblemsFAQ

http://docs.jboss.com/seam/2.0.0.CR1/reference/en/html_single/#d0e5034

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

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