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
| Author | Question regarding <wm:render> tag | ||
|---|---|---|---|
|
gerben.spil
Posts: 5 |
Hello everybody, The <wm:render > tag renders the object ${element} using whatever presentation is associated with the object in GX WebManager. means. I was looking for a way to render my new custom mediaitem without changing too much code and stumbled upon the taglib reference and the wm:render tag. <wm:render object=${element} />for my custom mediaitem or should it be <wm:render object=${element} presentationName="renderMyMediaItem"/>? |
||
|
williamb
Posts: 234 |
Hi Gerben, |
||
|
gerben.spil
Posts: 5 |
Hi William, |
||
|
patricka
Posts: 255 |
Hi Gerben, Can one associate a presentation with an object?
But my assumption is correct, that I can not associate a presentation with an object? As soon as I create a custom mediaitem I have to insert a switch/test statement to render the correct presentation?
|
||
|
Paxlie
Posts: 67 |
There is something to consider though. You can not use any Presentation Variants with the wm:render. |
||
|
williamb
Posts: 234 |
You can not use any Presentation Variants with the wm:render. |
||
|
Paxlie
Posts: 67 |
I tried it 2 days ago and it wouldn't work. We are using separators in mediaitems so I tried to call "wm content 0-1" |
||
|
patricka
Posts: 255 |
williamb wrote: For 'Page parts' I'm quite sure you can just select the correct presentation variant as long as you match it in the 'page part' tab.
|
||
|
pimk
Posts: 11 |
I voted for this issue in Jira: the xml solution looks great. |
||
|
williamb
Posts: 234 |
|
||
|
patricka
Posts: 255 |
pimk wrote: I voted for this issue in Jira: the xml solution looks great.
- What would be the best way to set the value for Page type presentation properties? By name? By id...?
- Are there any other property types that need 'non-textual' values and are still used (framework, color, image, font or button are valid options as far as I know, but does anybody use these anymore)?
- Shouldn't the xml format PatrickA suggests in the issue also support the addition of the preview image? This 'hidden feature' should be supported through the xml as well (also for the default presentation, which is currently not possible either)
- while we are at it: it should be possible to set the Ranking through the xml.
|
||
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.
