Subcomponents of af:panelPage
I'm struggling to work out how I can conditionally render facets within an <af:panelPage>
Basically, I have two modes in which I want to render my page a) a normal mode and b) a print mode
The print mode has to be identical to the normal mode except that it should not display the menu3 facet.
My problem is that I can conditionally render the content (or not) within the menu3 facet, but if I remove the menu3 facet completely in my printMode, then the other facets move accordingly and the page wraps in an ugly way. If I simply remove the content of the menu3 facet then I get an embty boat-shaped object floating in the top left corner of my screen. The rest of the page however, renders correctly.
Ideally, I guess I would like to keep the facet as a placeholder, but render it invisible. Something along the lines of:
inlineStyle="display: none;"
Alternatively something along the lines of:
<af:panelPage>
//various facets
<af:switcher facetName="#{!printMode ? 'menu3' : 'someOther'}">
<f:facet name="menu3">
</f:facet>
</af:switcher>
//more various facets
<af:panelPage>
But I'm discovering that a switcher doesn't work inside the panelPage.
Any pointers would be most welcom
Hi,
Ok, I get your problem. Then you have two options:
1. Add a style class on the panelPage when the printMode is on then change the skin to set display:none; on the menu3 facet's selector when that styleClass is there. So try something like:
In the page
<af:panelPage styleClass="#{printMode ? 'PrintMode' : ''}">
</af:panelPage>In the skin:
.PrintMode af|panelPage::menu3 /* This selector might be slightly different, validate with FireBug */
display: none;
}2. Create your own layout component (if 1. fails)
Regards,
~ Simon
Similar Messages
-
Requirement : We have a requirement to reuse the standard Activity subcomponents Appointments, Tasks, Phone Calls and Emails within a custom work centre. The requirement is to leverage and copy all sub functionalities Appointments, Tasks, Phone Calls and Emails available within the standard activity work center. This feature is available within Accounts, Opportunities, Leads etc. (Refer screenshot: Std_Act_Screen.jpg)
We are unable to consume/embed the standard Activity (Work center) sub components Appointments, Tasks, Phone Calls and Emails within the custom work center. This is because of backend consistency check violation UI designer error message displayed. (Refer screenshot:Error while consuming standard activities.jpg)
Ø Open Question:
a. Is there a limitation to consume/embed the standard Activity (Work center) subcomponents Appointments, Tasks, Phone Calls and Emails within a custom work center? We have noticed that this standard Activity Work center subcomponents Appointments, Tasks, Phone Calls and Emails has been repeatedly reused within the application in Account, Opportunity, Sales lead, Lead, Sales Quote Objects.
b. Is there an alternative way in which we can call [Through API etc..] the standard Activity Work center subcomponents Appointments, Tasks, Phone Calls and Emails?
We need your guidance to overcome the error to enable the reuse of the standard Activity Work center sub-components Appointments, Tasks, Phone Calls and Emails within our custom work center or suggest a suitable workaround on how this can be achieved.
Regards .. Dheeraj SainiWhenever you find out let me know. I wanted to assign a text tone to someone and now in iOS 7 i can't. Or I haven't figured this out yet.
-
Duplicate custom component link when used in panelPage
Hi Guys,
I created a custom component, pretty simple component, just to create a list of links, something like :
Community Discussion Forums » Developer Tools » JDeveloper
It works fine in other pages, but when I use it with panelPage, panelPage automatically adds another link on the bottom of the page, and each time I refresh the page, the links keep repeating itself ... (behaviors kind of like the facet nemu1 links being added in the bottom)
How can I avoid this behavior? (maybe set some attribute in panelPage?)
Would really appreciate any help!Hi,
how does the page source look ?
Frank -
Unable to find PanelPage option in ADF Faces core...
Hi,
Am trying to come up with SRDemo application for 11g and am following the tutorial provided for 10g in the site. I am encountering various problems as I am working with 11g. One of the problems is that am not able to find "Panel Page" option under ADF Faces core or anywhere. I have included the ADF Faces components 11-ji3 lib. Secondly, I was unable to locate JSF JSP option in JSF Gallery and have went on to create a template using JSF Template dialogue. Any solution to this?Hi,
the panelPage component is no longer around. Using a template to mimic this layout is the right approach to take.
Frank -
Basic questions about JSF/af:panelPage/Facets
Hi there
Using JDev 10.1.3.3.0, I created a couple of JSP pages using JSF and ADF BC. Then I added to one of them a af:panelPage and changed the facet branding to be the company logo.
Do I need to do the same for the other page (and any other pages that I create)? Is there a place where I set this facet value globally?
And is there a way to set up what facets are included in a af:panelPage by default?
Sorry if these are basic questions, I am just starting to use JSF!
Thanks,
Luisfacets with af:panelPage.
http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.jsf_apps%7Cadfcreate%7Caf_alay_pagecomponent~html/
http://otndnld.oracle.co.jp/document/products/as10g/101300/B25221_03/web.1013/b25386/web_complex002.htm
Re: <jsp:include page/> - Error -
Af:panelPage not found in Component Palette
Hi All,
I am using JDeveloper 11.1.1.5.0. I am following a hands-on tutorial in book "Oracle JDeveloper for Forms and PLSQL developers" which is using Oracle JDeveloper 10g. It is using af:panelPage facet which is not available in JDeveloper 11g.
Can someone guide me how to include it in component palette or there is some alternative available with different name?
Any help will be highly appreciated.
Thanks in advance
Bilalcomponent palette.. show ADF UI related components when you have ADF Faces. ADF Page Flow shuttled to the right in the project properties.. -> Technology Scope.. ADF ViewController project.. from New Gallery comes with these libraries handy...
i am not sure about af:panelPage.. in 10g but if you want to use panel then you can have a look at
af:panelHeader
af:panelAccordion
etc in jdev 11g for ADF UI components... -
ADF Faces Components: How to fix position of af:panelPage facets
I have several jsp pages, each of which has af:panelPage component to which I included menuGlobal, appCopyright, appPrivacy, appAbout. What I don't like about those pages is that above-mentioned facets keep moving up and down depending on contents i add to the different jsps. For example, if jsp1 has more content than jsp2, then moving from jsp1 to jsp2 results in above facets moving up. I just hate that. I would like to have those facets have a fixed location at the bottom of any jsp page and not have their location changing as I switch between pages having different contents. One of many things I tried doing is wrapping the content of each jsp inside af:panelBorder and set a fixed height to the af:panelBorder. This works. However, I don't like to set af:panelBoder height to some fixed value because on different displays, user may end up having to scroll up and down to see entire jsp contents and I don't want scolling. So I tried using inlineStyle to set height of af:panelPage to percentage of screen height but this doesn't work either. I am stuck !!!
Please help/advise!
It looks like either i am dumb and dont know what I am doing or the flexibility i am seeking isn't supported.
I am using JDeveloper (10.1.3.2).
Thanks a lot in advance.
Message was edited by:
samsamHi,
did you try skinning ? Inline style CSS doesn't necessarily work for the whole component as it operates on the root DOM element, which in the case of a composite component isn't the individual facet
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/skin-selectors.html
af|panelPage::about{
height: 30%;
Frank -
Can We add more facets to panelPage Componet?
Hi! Frank,
Could you tell me if panelPage component can be customised?
Can we Extend the panelPage,i.e Can we create more facets to the panelPage Component,than what are already provided?
Suppose, the panelPage component has the content that goes to the left bottom,right bottom, but not exactly,at the bottom-centre, or we can have menu tabs (other than menu bar which goes to menu3 facet) in menu1 which keeps the menu tabs near the right-top end of the page, or at the left top if we keep them in brandingAppContextual ;but not in the middle.
There is a lot to be added to Panel Page, It still does not have a lot of regions that every modern web page needs to have. Further limiting the developer to put content in only those few regions in the page which are given to you is like keeping all sorts of nice food but tying one's hands!
If the PanelPage is extendable ,then it will serve as a real Template for any custom design one likes to have.
Can you give an outline of how to do this if posssible?
Thanking you in advance,
Samba.If you need a completely different layout, you better not use the panelPage component. The panelpage component generates an html table to layout all the component on your page. This is very inflexible, ie., you cannot reposition the items on your page using css.
Html divs are better suited for flexible layouts than tables. The easiest solution is to use a jsf div component, and use css to position the divs. I think Apache myFaces contains a div component.
The current version of adf faces isn't suited for very dramatic layout modifications. Although you can use skinning, this is best used for changing some colors, fonts and maybe some images. It'll be very frustrating if you try more.
The cause of this is that adf faces generates very old fashioned html: think last century html, using table layouts and transparent images. Most html developers these days use semantic html in combination with css, as these have been proven to be very flexible, as can be seen on csszengarden.com.
Another example, apart from panelPage using tables, are tabs. These are also rendered using tables. Most modern html interfaces instead use list, as these are more flexible: you can render them horizontal or vertical just by changing your css. This is not so easy when the tabs are rendered using a html table.
In my opinion adf faces interfaces have the same restrictions as oracle forms applications: you're able to quickly and productively create administrative data entry applications but layout isn't very beautifull.
This doesn't have to be a big problem, you just have to educate your customers: do you want an expensive and very beautifull application, or do you want a cheaper, slightly less good looking application? I think many customers will choose the less good looking application, as has been demonstrated with oracle forms in the past.
Btw, as far as i know, the next version of adf faces should be a lot better, good use of xhtml. -
af:panelPage how to change "Content here" when I click tab1, tab2, etc.
[I can only find this forum. If you have forums for JSF and/or ADF give me URL.]
Hi.
I don't understand <af:panelPage> and how to change view when I click tabs or items?
I did look at source, docs, and panelPage.jspx, but I still doesn't understand.
I know panelPage have <f:facet name="menu1"> for tabs and <af:menuTabs>
<af:commandMenuItem text="tab 1" action="guide.menuTabs"/> which point to
<navigation-case>
<from-outcome>guide.menuTabs</from-outcome>
<to-view-id>/components/menuTabs.jspx</to-view-id>
<redirect/>
</navigation-case>
but how to stay in same page with different tab view?
I have adf-faces-ea13.zip and I install example components war in Tomcat.
You develop great components!!!!
When I open
http://localhost:8080/adf-faces-demo_ea13/faces/components/panelPage.jspx
and click any tab 1-6 I get new page/view, URL is
http://localhost:8080/adf-faces-demo_ea13/faces/components/menuTabs.jspx.
How can I get new content within same page (panelPage.jspx), only that that tab become selected (blue) and show content for that tab?
Same question for item 1-4?
When I click any item 1-4, view are redirected to
http://localhost:8080/adf-faces-demo_ea13/faces/components/menuList.jspx?
How can I stay in same page but with different "Content here"?
What can I use for "Content here" when I click tabs or items?
Included (f:subview) JSF/JSP pages or you suggest something else?
And what to use with subview:
1)<%@ include file="header.jsp"% >
2)<jsp:include page="header.jsp"/>
3)<c:import url="header.jsp"/>
Regards,
Niksa.Use the JDeveloper forum for questions about Oracle ADF and JSF.
A link to it is on the right side of the JDeveloper home page http://www.oracle.com/technology/products/jdev -
What is the PanelPage component called in JDev11g
Hello,
I am working through the SRDemo (10.1.3.1.0) using JDev 11g TP4. (Fraught with peril I know!)
I have just used the JSF Page Template wizard (instead of the JSF JSP).
It is now calling for me to drag the PanelPage component into the Visual Editor. I don't see a component called Panel Page anywhere.
The one difference I see is that my selection in the Component Pallete says 'ADF Faces' instead of ADF Faces Core that is shown in JDev version 10g.
Does anyone know if there has been a name change to this component are am I missing something??
Thanks,
BobThis demo is not compatible with the Jdeveloper 11 version.
I don't think the demo for this version has been released yet, but as the production release is going out soon, it should be available then.
ADF Faces in 10.1.3 is not compatible with ADF Faces in 11g, so components are not the same and thus, there is no PanelPage anymore. You must choose between 10.1.3 or jdev11. Choose 11g if you're going to build new applications, 10.1.3 only if your about to do maintenance on product build with the framework. -
How to make ADF PanelPage as Template
Hi,
Im Harry. Im newbie to ADF and JSF
I wanna know how to make PanelPage as a template.
So when i drag PanelPage component, it already have my company logo as a header, application name as title. etc ..
How can i do that ?
FYI im using JDev 10.1.3.3Harry - just because you are new doesn't mean that you can keep posting the same message over and over. There are 4 entries for your question already - and as Frank replies in one of them there is no templating built in in 10.1.3 - you can use copy/paste of your component.
Some people use Regions to do templating - though this is not supported and won't migrate to 11 (you can search google for template and adf region - and you'll find the solution). -
Change the layout of af:panelPage jsf component in Jdev 10g
I am using jdeveloper 10.1.3.4. I am trying to change the layout of the af:panelPage component, and in particular i want to bring the "actions" facet to be rendered on the left instead of the
right of the page. There is a group of buttons contained in this facet and the client want all these buttons to be moved on the left side. Is this possible?
ThanksHi,
unfortunately no, you can't change this
Frank -
Af:panelPage facets not working
I'm using ADF Faces EA11 and I'm having trouble with several of the facets on af:panelPage. None of infoReturn, infoStatus, and infoFootnote render at all.
Is this a bug, or a known limitation of the early access release? Is there some trick to making them render?
Thanks,
Larry.Thanks - I was relying on the data at this URL:
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/imageIndex.html
And I didn't notice that it had changed to documenting EA12.
I should have relied on the internal documentation instead of the on-line doc.
I'll look at updating to EA12.
Thanks again. -
A tutorial at Oracle Wbsite says:
1. In the Navigator, select the UserInterface project, and then select New from the context menu.
2. In the New Gallery, expand the Web Tier node in the Categories pane (if it is not already expanded) and select JSF.
3. In the Items pane, select JSF JSP and then click OK. The Create JSF JSP Wizard launches.
If the Component Palette is not visible, select View > Component Palette.
1. Select the ADF Faces Core page in the Component Palette, and then locate the PanelPage
component in the list.
2. Drag the PanelPage to the template in the Visual Editor.
this is from
Oracle® Application Development Framework
Tutorial for Forms/4GL Developers
10g Release 3 (10.1.3)
NOW AS IM USING Jdeveloper 11115
where do i find PANELPAGE?
Kindly,As I said, THERE IS NO PANEL PAGE IN 11.x
So if you want to do that specific tutorial, then you can install the really old 10.1.3.x, but I would strongly suggest that if you are doing new development in 11g, you find a different tutorial
John -
Hi,
I have strange behaviour of PanelPage component. I put to panelPage some components, and when I put e.g. outputText into userInfo facet, than the page content doesnt render at the same spot when user interacts with the page(header of the page is fixed, bottom of the page take changes). All components always move its position depending on how much of .jspx page is populated, from a few pixels to 1 inch. Everything was fine before adding that facet.
Thanks in advance.Hi Emile,
panelPage no longer exists in ADF Faces Rich client so I assume you're using ADF Faces 10g. If so, please use the 10g forum JDeveloper and ADF as you'll get better answers there.
Regards,
~ Simon
Maybe you are looking for
-
Script to open RSS feed url's and post those in the background to a webpage
Dear everyone, Im trying to work on a script that should do: - Read My Apple mail RSS feeds every 120 seconds - extract a NUMBER from the links from those RSS feeds - then post them to a website url site.com/rss.php?id=<extracted id> - It should run
-
Hard drive crash need help with new iTunes load and backup files
I have looked through the posts and not found my situation. I had my iPhone synced to a PC computer and the hard drive crashed. I had an extensive library in iTunes, but none of the music was purchased online so I can't simply download it again. It w
-
HT4993 I have an app that was updated and now it won't open
I updated an app on my iphone 5 and now it won't open. How do I fix this without loosing my data on the app.
-
Anyone Using Parallels or VMWare on Early 2009 mini 2.0GHz?
There's been some controversy as to whether the Early 2009 mini 2.0GHz has VT-x (needed for fast virtualization) enabled. The stock P7350 Intel processor in it has VT-x disabled, but Apple is supposedly getting a custom version with VT-x enabled. I'm
-
When using "Database diff" selecting other schemas only for compare own objects are shown too!Hi! For tables with lob columns (clob, blob, etc.) indexes with system names are automatically created per lob column. If I am on different database instanc