cancel
Showing results for 
Search instead for 
Did you mean: 

Can I Design a Forum with using web dynpro for java?

Former Member
0 Kudos

Hi All:

Can i design a forum with using web dynpro for java?

I want to design an application like a simple forum which maybe has many replies.So if i use

the UI technology "web dynpro for java", i will to create UI elements dynamically.How can i control this

dynamical UI elements to keep layout ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Of course, you can implement a forum using WD Java. What is the exact question?

Armin

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks for your replies...

I am very sorry that i described my question unexactly.

actually,just my question is that i don't know how to control

the layout of dynamical UI elements in my iview.

the layout,do u know what i mean?

srinivas_sistu
Active Contributor
0 Kudos

Hi,

That is very simple....

Dont look at that as a Dynamic Container...

instead first create a static layout in your NWDS,

then look at all the properties of your container, UI elements....

like, what layout you used, what are width of each UI Element you placed, etc.....

then in your Dynamic UI Coding use the same values....

Regards,

Srinivas.

Former Member
0 Kudos

Hi,

as per srinivas comment do the same and for the dynamic coding here i m giving you the path of a file in your webdynpro project in which dynamic codding use to store for the UI's created by you in the design time.

with the help of this file you can under stand and code dynamic UI as per your requirement.

go to navigator and follow the path:-

project name>gen_wdp>packages>com>sap>wdp>Internal<you view name>.java

Hope this may help you.

Regards,

Deepak

Former Member
0 Kudos

The layout is specified by

- setting a layout manager for the container (e.g. MatrixLayout)

- setting properties for the layout manager

- setting layout data for the children of the container

- setting properties of the layout data

Armin

srinivas_sistu
Active Contributor
0 Kudos

Hi,

yes you can do that....

for exaple if you observe SDN...

you can imagine like....

A big Transparent Container(TC)....

Inside that number of other TCs(depending upon the question nd its replies...)....

In side each TC, again around 9 UIElements....

one for menioning what is the question/reply?

other for your description of question/reply...

other for your name,

displaing your fourm point... etc...

So it will be

for(loop till your (Question+No of replies))

{

Create Transparent Container....

Add Childs to the Container...

Decide your layout....

}

In case if you want to know how to create UIElements dynamically....

http://help.sap.com/saphelp_nw04/helpdata/en/4f/07cf3dd28b5610e10000000a114084/frameset.htm

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/dynamic%2bui%2bgeneration

Regards,

Srinivas.

Regards,

Srinivas.