Sign in

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

Register | Forgot password

Active forums

Active Forums RSS September 03, 19:59
Style properties

August 31, 21:46
antrun not found

August 31, 14:12
WCB customprofile

August 31, 12:10
End of flow not doing its job

August 24, 12:37
Sort mediaItem by expiration date

 All Forums...


Passing presentation property of page to pagepart

The "WCB: JSP front-end design" forum contains threads on issues that are related to JSP front-end design while programming a WCB (WebManager Component Bundle). The Presentation & Element component contain JSPs that will be used for front-end rendering. Ask your questions related to these JSPs here. Some example topics: integration of AJAX, use of the taglibs, how to handle multiple websites, and so forth.

Answered
Not marked as answered yet

Forums  >  WCB: JSP Front-end design  >  Passing presentation property of page to pagepart


Author Passing presentation property of page to pagepart
johnsten



Posts: 52

Posted: 16-07-2010 14:34

Is it possible to pass a presentationproperty of a page to a pagepart?

I need this for a menu that can be horizontal or vertical

patricka



Posts: 255

Posted: 16-07-2010 15:28 Solved

Sure!

Just pass on the parameter in the pagePart tag of the page.jsp, like so:

<wm:pagePart label="xxx" myProperty="yadayada" />



And in the pagepart.jspf, do

${myProperty}



Hey, presto!

You owe the Oracle a cool breeze.

Greetings,

Patrick

johnsten



Posts: 52

Posted: 16-07-2010 16:11

1 cool breezer ?????

williamb



Posts: 238

Posted: 16-07-2010 19:16


As an extra:

Don't forget: if you use a SSI in between, it's ${param.myProperty} and you'll need to pass it on in the SSI!

And of course: ${param.'s need to be checked before writing them to the world!

A Martini is good for me too :P

johnsten



Posts: 52

Posted: 19-07-2010 11:15

Thanks

Back to top

New message: "Passing presentation property of page to pagepart"
Message:
bold boitalicd underline url quote code smile cool eek grin mad razz sad wink
 
© 2010 GX creative online development B.V.

Disclaimer

This website (GXdeveloperweb.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.