Sign in

E-mail *, (xx@domain.com)
Password *

Register | Forgot password

WCB customprofile

The "WCB: Java development" forum contains threads on issues that are related to Java while programming a WCB (WebManager Component Bundle). If you have questions that have impact on Java code, post them in this forum. Some example topics: authorization, the different component types, setting up component dependencies, data access, and so forth.

Answered
Not marked as answered yet

Forums  >  WCB: Java development  >  WCB customprofile


Author WCB customprofile
Sunshine Sylvia


Posts:

Posted: 12-08-2010 12:36

Hi,

I want to customize the user details in configuration -->user profiles. I found an example WCB in the WCB tutorial. I tried this and it seems to work until i put data into the fields. The ICQ adress is blank again if you switch users, the MSN adress example only holds an example value user+msn@hotmail.com. No other value is allowed.
My own field(Klantnummer) holds the value i typed (123456) but is the same for every user! Then, when i log out and go back again, this value is gone too.

So question 1 is: How to deal with this?

Question 2 is: what if i want to add my own field Klantnummer between existing fields like email and first name instead of at the bottum as the example shows?

Sylvia

williamb



Posts: 310

Posted: 13-08-2010 13:46

1. The archetype seems indeed to not save any changes. It should do that IMHO, but doesn't. If you take a look at the java code it seems to be pretty hard-coded.

I'll create a Jira issue about that one.

What you could do is change the logic, so it would work. For instance by saving data into the a new table in the database (instead of the JCR).

2.That is not possible.
New data is always in a new tab, or in the bottom of an existing tab (e.g. the User details tab).
I think this is a good change request however.

Sunshine Sylvia


Posts:

Posted: 13-08-2010 16:24

1. do you have sample code for me to do that or point me to some other documentation. I really have no idea how to change the logic at this point.

groet,

Sylvia

williamb



Posts: 310

Posted: 17-08-2010 21:34

Hi Sylvia,

It's a bit too much code to post in the forum, but I think I can have a sample WCB for you available in the near future.

It uses a database backend, and also includes some handler examples that can be used by the interactive forms module.

I still have to test it, and make sure it's compliant with all guidelines, so it can take some time.

Maybe someone else has an example WCB ready at this moment, if you can't wait?

-William

williamb



Posts: 310

Posted: 30-08-2010 21:29

Hi Sylvia,

An example is available at http://www.wcmexchange.com/internationalizationprofile/.

It is not yet certified, but it should already be a handy example.


This WCB contains WebUser profile extention that adds both Country and Language to a user.
It saves it's data in a database
(note. Only MSSQL has been tested so far).

Also contains a (interactive forms) router that routes the user, after for example a login, to the language that is specified in his profile.

Contents:
- Load profile handler for interactive forms
- Save profile handler for interactive forms
- Router based on language in profile
- Profile extention (on a tab)
- DAO

Sunshine Sylvia


Posts:

Posted: 31-08-2010 14:12

Hi william,

Thank you for developing this example on such short notice.
I am gonna try this as soon as possible. I will be back

williamb



Posts: 310

Posted: 23-11-2010 16:57

Hi Sylvia,

How did this work out for you?
If it's solved, please mark the question as solved :)

Thanks!

Back to top

New message: "WCB customprofile"
Message:
bold boitalicd underline url quote code smile cool eek grin mad razz sad wink
 
© 2012 GX Software B.V.

Disclaimer

This website (Connect.gxsoftware.com) may discuss or contain opinions, (sample) coding, software or other information that does not include GX official interfaces, instructions or guidelines and therefore is not supported by GX. Changes made based on this information are not supported.  GX will not be held liable for any damages caused by using or misusing the information, software, instructions, code or methods suggested on this website, and anyone using these methods does so at his/her own risk. GX offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this website, including any liability resulting from incompatibility between the content of this website and the materials and services offered by GX. By using this website you will not hold, or seek to hold, GX responsible or liable with respect to the content of this website.