A reference to a component on a fragment of a page within a < af:region >.

Hello

ADF Faces RC with JDeveloper 11.1.1.1.0.

Currently I have a scenario where I have a page that contains a dynamic region based on a selection of the user on the page that I went to a different workflow consisting of a fragment of a page inside my dynamic region.

When you try to add a 'Export to Excel' button on the home page (not within the region), using a < af:commandButton > that contains a < af:exportCollectionActionListener > one of the required attributes is a 'ExportedId '. So I created a string backing bean "excelExportId" variable, I put the "ExportedId" attribute to use via EL. I want that it contains the Id of the table contained in the page fragment which is currently made in the dynamic region. This is the problem, if I try to reference the Id of the table, I get a "SEVERE: collection whose ID has exported: Mason was not found." message in the server logs. I also tried adding the Id of the region before the table Id with no luck. i.e. ": r1::tabSum".

So my question is... How do make you reference to a component that exists on a page within a dynamic region fragment of the of your page (i.e. on the region) by its ID.

Thank you
Matthew.

have you tried 'r1:tabSum' instead of ': r1::tabSum '?

Edited by: puthanampatti 21 October 2009 19:34

Tags: Java

Similar Questions

  • Component interface user built programmatically is not refreshed in the region

    Jdev 11.1.2.2.0

    I have a page jspx with area (fragment of a page in the workflow) incorporated.

    Region setting:

    R: ifNeeded

    Activation: deferred

    Jspx homepage code snipplet:

    ...

    < af:chooseDate id = "theChooser" / >

    < af:inputDate chooseId = 'theChooser' id = 'choosenDate '.

    autoSubmit = "true" visible = "false".

    value = "#{session_calendars.activeDay} '"

    valueChangeListener="#{viewScope.backing_capacityCalendar.goDate}"/ >

    < af:panelStretchLayout id = "psl3" partialTriggers = "choosenDate theChooser" >

    < f: facet = 'bottom' name / >

    < f: facet name = "center" >

    < af:region value = "#{bindings.cmCaltaskflow1.regionModel}" id = "r1" / > "

    < / f: facet >

    < f: facet = 'Start' name / >

    < f: facet = 'end' name / >

    < f: facet = 'top' name / >

    < / af:panelStretchLayout >

    ...

    Code snipplet of the page fragment (jsff) / region:

    ...

    < af:panelGroupLayout layout = "scroll" binding = "#{pageFlowScope.backing_cmCalBean.cmCalPanelGroupLayout} '"

    ID = "pgl37" partialTriggers = "cil3 cil4 cil2 cil1" >

    < af:spacer width = "10" height = "10" id = "s23" / >

    < / af:panelGroupLayout >

    < af:outputText value = "#{pageFlowScope.backing_cmCalBean.activeDay}" id = "ot4" / > "

    "< af:commandToolbarButton icon="/images/nextitem_ena.png ".

    shortDesc = "next day".

    ID = "cil2".

    actionListener = "#{pageFlowScope.backing_cmCalBean.changeDate}" >

    < af:setActionListener from = '1 '.

    to = "#{requestScope.Number}" / >

    < af:setActionListener from = 'DAY '.

    to = "#{requestScope.type}" / >

    < / af:commandToolbarButton >

    When you select date in chooseDate in the homepage, he got passed as an input to the flow of the area/task parameter, and the region is updated.  I can see in < af:outputText value = "#{pageFlowScope.backing_cmCalBean.activeDay}" id = "ot4" / > in the region that it accepts the parameter correctly from the home page and in the region got refreshed. "

    However, there is a panelGroupLayout in the region which is built programmatically in the bean based on the input parameter

    < af:panelGroupLayout layout = "scroll" binding = "#{pageFlowScope.backing_cmCalBean.cmCalPanelGroupLayout} '"

    ID = "pgl37" partialTriggers = "cil3 cil4 cil2 cil1" >

    I can see in the paper that the methods in the bean got called correctly and that is the construction of the panelGroupLayout with the right data.  But she has not updated and reflects the new data in panelGroupLayout.

    I have even in my bean code: delete children panelGroupLayout before strengthening again on the update.

    If (cmCalPanelGroupLayout! = null) {}
    LOGGER.info ("claire cmCalPanelGroupLayout");
    cmCalPanelGroupLayout.getChildren () .clear ();
    }

    Any ideas how component user interface built by program in the region can get updated then the outbreak of the homepage?

    Please notify.

    Thank you

    -Mina

    I found the solution.

    You will need to disable the children in the region, a single layer, instead of just compensation to the children of cmCalPanelGroupLayout:

    Region of RichRegion (RichRegion) = JSFUtils.findComponentInRoot ("r1");

    region.getChildren () .clear ();

    AdfFacesContext.getCurrentInstance () .addPartialTarget (region);

    -Mina

  • Citing a taskflow of the fragment on the page

    Hello

    I use JDev PS3. I use export custom Excel feature (which includes a popup and a shuttle service to select the required columns) in each fragment of the page.
    I intend to generalize this task and do use this feature available to other applications. Any suggestions are appreciated.

    Thank you

    Hello

    I think that he is a candidate for a declarative component. If the component is a panelCollection users would then drag and drop the table. The export button is added to the toolbar of the collection of panels and its logic could then access the table (this is a child element of the collection of panels) and a list of its columns to export. I implemented a similar use case in an article for the 2013 edition of the Oracle Magazine (next issue) July/August and know that it works.

    Frank

  • Difference between subview JSF and fragments of the Page in ADF Faces

    Hi, what is the difference between the use of JSF subview tag and ADF Faces page fragments.

    It's between these two-

    < f: subview id = "header" / >
    < jsp: include page = "Header.jsp' RAS ="true"/ >"
    < / f: subview >

    and

    including directly a fragment of a page (with an element of jsp:root outbreak) as below

    < jsp: include page="/fileExplorer/popups.jspx"/ >

    Thank you

    The subview is a naming container which ensures that no violation of ID of component unique is caused by the imported page fragment. Use the component subview, all IDS of any fragment component are prefixed with the id subview followed by a colon

    Frank

  • Switches and uses parameters in the fragments of the page

    I spent the weekend trying to get information on the use and passing parameters into areas (page fragments) with little success.
    I use JDev 11.1.1.3. with the merger of ADF for the project.

    I got a train set that uses a jspx and is long of 5 elements (all fragments of the page).
    I have a page of research as an entry point (page fragment). This contains the main table, the remaining elements (page fragments) in the train are children to the master.

    I need to pass the primary key of the mastery of all the fragments and you also have to set the field in the table when records are inserted (it is a data control).

    I found no examples - and the tutorial uses no - one Bean support for fragments or primary jspx who maintains the region.
    Ideally, the bean of support would be in the jspx that contains the box (as would be, and the fragments are changed).

    Also, as the primary key (foreign key in fragments) is never displayed - I'll have to update these keys the records are inserted (some are tables and forms).
    I read on the triggers of context - and think that they could be used (inform the parent of selection and insert actions) and the parent may be able to capture and define these values.

    I would have thought the DC would have been smart enough to understand the relationship - but alas - I get the error message saying that the foreign key is missing.
    I suspect that the domain controller can be unique to each fragment (I updated the scope of Commons - but not sure that this will help).

    Can someone give me a hand (I'm sure this has been done before) or point me to an example (tutorial), who can give me information.

    Also, is there a way to put an exit point on the train (e.g. as terminus) If users can leave at any time (it is a train not sequential).

    Page of the fragments in train stations that contain the details of the main line, that you select on the first page, wouldn't have new lines created on these fragments of page automatically linked to your selected master? Therefore no primary key would not even should be passed to fragments of the page because framework would make the link master / detail appropriate for you.
    If this is not the case, have you tried using pageFlowScope variable to hold the values through fragments of page? If everything is in the same taskflow, then pageFlowScope variable would be ideal for this. Even if you agree on each train stop, values would be always kept there so you can use them again and again until the workflow ends.
    Also, have you taken into account the built in 'CreateWithParameters' operation to set default values during the creation of new lines on the detail of the fragments of page? In this way, you could use passed parameters and set the values of your attributes without writing a single line of backup code bean :)

    I hope this helps!

    Kristjan

  • Declarative component are not available in the page fragment

    Hello

    I created the declarative component... But it can only access *.jsf page not page fragment...

    Hello

    Had in fact I created declarative component by using the page faclet (*.jsf)...  If I create DC using .jspx page... It's work

    Thank you

    Nitesh

  • Component to reference any other component libraries

    Hello

    Is it possible to have a component that uses the libraries defined in another component?
    I would like to have a component with only libraries and any component to be able to reference libraries withdrawal hence the need to put libraries in each component.

    Thank you
    Vlad

    Hi Vlad, it's quite possible. Make sure your library component has its class-path set up correctly and your other components must be able to reference these classes without extra effort (as long as your library component is deployed and activated).

    It might be wise to implement a feature in your library component (in the wizard components, goto advanced build settings and fill "Feature Extensions" field with something, IE.) MyLibraryComponent). In all the other components, you can that put in the characteristics required in the field the same chain; That is to say. MyLibraryComponent. That should tell anyone off the component library that is required instead to generate a whole host of classnotfound exception. Implementation of this thing of functionality is not required to make things work.
    Kind regards
    Fabian

  • Reference of the component in the atg

    Hi guys

    In atg why field components should not refer to components of lower scope
    This list is possible vice versa

    give me a small example

    964906 wrote:
    Hi guys

    In atg why field components should not refer to components of lower scope
    This list is possible vice versa

    give me a small example

    A component of the global scope should not point to session scope or ask why because the scope session component will be associated with a particular session once the session has expired and then component of session scope is a stupid idea and similarly worn component request will be for a particular request after that will be destroyed. On the other hand the global scope of the components will live until the application runs for every time query/session components refer to it can easily provide kernel.

    It may be useful

  • How to make a reference to a component

    Hi, I have this file structure:

    renderer.jpg

    How do the red component stressed the rendering to the tile list?  I have on the top of the page xmlns:comp = "components.*" but I don't know what to put in the imtemRenderer attribute.

    Thanks for the help.

    Only, you should be able to use the name of the class:

    components. TilelistItemRenderer

    Let me know if that helps...

    Ben Edwards

  • Fragments of complex page with many entity with composition objects

    Hi, I use JDeveloper 12.1.3,

    Now, I wonder about your personal experience when working on / page fragment that shows mutiple composite EO. In this case, it is recommended to keep them on the page/fragment of monkey to stop invalid owner Exception.

    However, in this case, we have a situation where multiple developers work on the definition of monkey page file (each has its own set of OS on which it implements functionality).

    If the team uses Subversion or Git it soon difficult to merge this big page definition file.

    What are yours knows everything it. How do you work on large files of definition of page with several members of the team? How to fix the merging. Is there another way to facilitate collaboration in this case?

    THX

    Concerning

    How do you work on large files of definition of page with several members of the team?

    I don't know why many developers would work on the same pageDef at the same time? (and why only on the pageDef and not on any page/fragment?)

    Generally, if it is necessary to change something on the page/fragment, a developer will finish job (Visual change and pageDef part) so this will eliminate potential conflicts.

    Everything else usually causes a mess.

    Dario

  • Convert a fragment of ADF page in HTML format

    using ADF 12 c

    Is it possible to convert my ADF page fragment which is a jsff page to an HTML page running?

    for example, I abc.jsff and a button "convert" on it, when you click on it that I need to convert the content of the page whole abc.html

    What I intend is, therefore, to convert the first page of the ADF in HTML format and then use the HTML code as the input to PD4ML.

    Maybe it would work for simple html pages, but not for pages with heavy use of javascript (as in the ADF).

    Instead, you can use a java pdf library (such as iText) or reporting (such as reports of jasper) engine to create PDFs of your data.

    Dario

  • Cross reference marker text differs from the text on the page

    The text for a cross-reference marker is different from the written text of the page. For example, I have a numbered heading written as "3.1 Cats and Dogs", but the text of cross-reference to this position marker is "55227: title 1: 2.1 pigs and horses." The cross reference looks and works great on the page, but I can't understand why the text of the marker is different, and why it cannot be updated to match the text on the page.

    I use Windows XP and FM9. Thanks in advance.

    Ron,

    The target of a cross-reference marker must have a unique string that differentiates it from any other marker of cross-reference in the file... it is how Frame numbers how when it comes so it can maintain the link and make updates. As you have probably guessed, this string is a concatenation of way random (I think) integer to format BMP target and target the text of TFP at the time of the creation of the xref. With all these settings, it is easy to achieve the goal of a single string.

    It seems appropriate to have this text update during an update of the xref, if something changes in the target. However, this would create two problems:

    -All xrefs that are not being updated at the time wherever the marker is published would be broken. For example, suppose you have xrefs folder has a target and make updates, which modifies the marker of target due to changes to the target. Any xrefs in file B (or any file for that matter) would become broken, because they are still configured to search for the previous string of marker.

    -An update of the xref always you would have to save the changes to the target file, which is an inconvenience at best. For example, if you have made an update of the book and xref target markers have been changed, you'd have to make sure that the files associated with the changes were saved later, otherwise your xrefs update would be broken later.

    So, in summary, the text of the marker is just a unique identifier that is defined during the creation of the xref and necessarily must stay the same for its useful life, unless you want to go around fixing broken xref all the time. Moral of the story... do not put swearing or slandering of boss in your topics like temporary jokes if you never create xrefs their

    Russ

  • How do I navigate programmatically to a Fragment of a page to another?

    Hi im using Jdev 11.1.1.2.0 and I need to manage the navigation within a pod of support of a page fragment, to move to another fragment of page? All the page fragments are inside a taskflow but without case of flow control or wildcards, of fragments of just single page.

    Any idea?

    Hello

    JDeveloper 11 g R1 PS1 introduced an API

    ControllerContext ccontext = ControllerContext.getInstance ();
    set the viewId of opinion in the stubborn workflow
    to access the following
    String viewId = "EditEmployees";
    ccontext.getCurrentViewPort () .setViewId (viewId);

    Frank

  • Several fragments of the page pointing to the same managed bean

    Hi all

    Jdev version 11.1.1.7.1

    I wanted to know if we can point to several jsff developed o your managed bean?

    While I'm trying to do, I don't get the option to create a new property or use an existing property of the bean while creating a link.

    Is this possible, if so what should be the scope of these beans.

    Hi Ashish,

    The field itself has been disabled for me, what I did was save the bean in the scope of the Session in the config of the adfc. Now its working fine for me.

  • Unnecessarily put in af:form usesUpload = true, a good idea

    Anyone know if the attribute of usesUpload af:form true regardless if we use a tag af:inputFile a good idea?

    Why I asked:

    We have set up a page template to can be used by many applications. The default model injects an af:form among others tag in an application page by using the template. Our applications via ADF feature libraries do use bounded workflows based on fragments of the page within the regions, in our application pages, which in turn use the page template.

    Each bounded workflow functionality is really defined task flow itself. In theory the stubborn workflows can include a page fragment that uses the tag af:inputFile. In order to support the component af:inputFile the tag of af: parent must have form it's usesUpload attribute set to true. However, in the case of the page fragment the form tag does not in the fragment, but rather in the page template which includes the region containing the stubborn workflow. As such, seems, it turns out to be necessary in order for the page template / workflow support different delimited area use cases that may or may not use af:inputFile, we need the af usesUpload: form = true nevertheless.

    But my concern is, there will also be bounded task flows which do not use the tag af:inputFile. So if we set usesUpload = true unnecessarily will be setting us up? Is it a bad idea to set it to true when you're not you transfer files?

    See you soon,.

    CM.

    Chris,

    Within the ADF faces when there is a file in the MESSAGE, we do a backup of an AJAX post in a former type of coding for the publication of HTML form via an iframe hidden with multipart/form-data specified as its form. It's a more verbose mechanism and the syntax for the data transmission.

    If the input file has no file or there is no inputFile components in the form, we do not have relief. We produce a regular XHR post to the server. So only when the MESSAGE actually contains a file there is no impact.

    That said, it just doesn't feel good to always set usesUpload = true, even if you never ever use to download a file. Your first thought to include an attribute in an exculpatory as suggested by jurkiri is more elegant. It is the approach taken in the adf-richclient-demo.

    The other approach, you mentioned (i.e., set the attribute on the tag form programmatically when a stubborn workflow is called) will involve a few extra minutes. However, the client library is smart enough to not joking don't not with the actual MESSAGE. Again, it is all in the ADF Faces.

    Outside of the ADF Faces , it is a very bad idea to have always enctype = "multipart/form-data" on the HTML

    element.
    It generates a bigger POST request because of the http headers, and it simply does not make sense.

    So bottom line:

    In ADF Faces Rich Client, there is NO downside to always have usesUpload = true.

    Outside the ADF Faces, his is a very bad idea.

    In both cases, it is more elegant to just set usesUpload = true if really needed.

Maybe you are looking for

  • Satellite L450-136 - installation of web cam driver problem

    Hi all I am trying to download web cam driver for Satellite L450-136.All is well until final bit, I get off cam end of message.Do not know how. Thank you

  • Issue update Compaq 6510 processor b

    HelloI'm about to upgrade the laptop processor for my Compaq 6510 b-computer that currently has the Intel Celeron 540 (1.86 GHz) processor. I studied the latest international document quickspecs (p. 4), which says that the laptop must be compatible w

  • can I download frontpage 2003 if I have Office 2007?

    I need to access the files from the old site (for text only, so I can use the information in a new website). It was built using Frontpage, and the webmaster tells me that I have to download Frontpage, so he can send me the files. So- 1. in view of my

  • startup problem, this entry is normal?

    Hi, I have a few annoying problems when I start my pc, I still get startup entries and I can't seem to find a way to get rid of them.Ive tried to install Windows xp on another partition but I failed and now whenever I start my pc I get this entry at

  • accidents and compatibility issues

    the only detail I want to offer is why are we not demanding microsoft to resolve the problem of accidents when we pay them to a program that is supposed to be usable?