cancel
Showing results for 
Search instead for 
Did you mean: 

components in par?

Former Member
0 Kudos

Hi,

for example if I want to create 2 text iviews, one with text "Hello" and one with "Welcome". what is best approach of developing this

i.e.

1. Is it good to use JSP dynpage or just dynpage would be good, why?

2. Is it ok if i create both of these components in one portal project, i.e. one PAR.

i.e. I want to know how many components can be created in one portal project. what is the commonly used approach in real time scenarios regarding number of components in a PAR file. should these portal components that resides in one portal project be inter related.

Please help me in deciding the above.

Thank you

Shiva

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

use abstractportalcomponent, you can print the text using the write statement.

Former Member
0 Kudos

Hi ALL,

Thank you for the replies.

Text views are nothing but the iviews with just some text. say an iview displaying "Hello World".

Hmm..abstaract portal component.. I was thinking of using JSP Dynpage, because it is easy and latest one.

Regarding number of components in a portal project (par file).. i was asking if i have two components, which should display "hello world" and the other one "welcome".. is it a good idea to place both the component in one par file or in two seperate par files.

WHAT DO YOU SUGGEST FOR THE ABOVE SCENARIO?

are there any hard and fast rules explaining what and how many components can be incorporated in a par file.

is it mandatory that all the components in a particualr par file be inter related. i dont think so, because the par appintegrator.generic par contains all the components of templates.. isnt it?

Thank you

Thank you

Former Member
0 Kudos

Shiva, if any of the inputs helped you, then you should assign points accordingly.

>are there any hard and fast rules explaining what and >how many components can be incorporated in a par file

There is no such rule.

If you want to build two seperate Iviews from the same par file then use two components.

Most of the time, in reality if u have to build multiple logically related components then u wud create them in one par file(safe,maintenance standpoint)

If you want to have two textIviews one each on a seperate iview then use two components.

<b>Plz don't forget points, if it helped.</b>

Regards,

P.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

1)

you can use two write statements in abstractportalcomponent to display "hello world"

and "welcome".

2)

It is a good idea to place both "hello world"

and "welcome" in the same jsp page.

3)

There are no rules on how many components should be on one page, you can place as many components as you want in a jsp page.

4)

It is not mandatory that all the components in a particualr par file be inter related.

Reward for useful answers

Former Member
0 Kudos

Din read it well..Yes what u mean by Text Iview, shiva?

I thought 'em as htmlb text views..

Regards.

P.

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Hi Shiva,

What do you mean by "text" iView?

Daniel

Former Member
0 Kudos

Hi shiva,

1.I wud use JSPDynpage, easy! JSPDynpage is something they brought in after Dynpage to make things easier!

2.Most of the times, you wud create one portal component if u have less UI elements and logic to be coded.There is no such hard rule, saying u wud need to create so many components in a par..it depends on the project u work upon.

Yes! components you create in One portal project are inter-related(sort-of).As and when u create a new component, an entry is made in portalapp.xml.

Find out more here..

http://help.sap.com/saphelp_nw04/helpdata/en/df/a36a3badc1b315e10000000a114084/content.htm

Hope it helps,

<b>Plz don forget points, if it helped.</b>Regards,

P.