Absolute coordinates of Component inside a Grid Parent

I have a TextInput component inside a Grid component and it
inside another component...
How can i know the TextInput absolute x,y coordinates?
<mx:TabNavigator ......>
<mx:Canvas ...>
<mx:Grid ...>
<mx:GridRow>
<mx:GridItem>
<mx:TextInput id="AAA" />
Thanks in advance

My bad. I should have tried it before giving you an answer.
This works nicely:
<mx:TabNavigator ... />
<mx:Canvas ... />
<mx:Grid ... />
<mx:GridItem>
<mx:TextInput rollOver="showInfo(event)"
rollOut="hideInfo()" />
<mx:GridItem>
</mx:Grid>
</mx:Canvas>
</mx:TabNavigator>
import mx.managers.PopUpManager;
private function showInfo( event:flash.events.MouseEvent ) :
void
var p:Point = new Point(event.target.x, event.target.y);
var pt:DisplayObject = DisplayObject(event.target);
p = pt.localToGlobal(p);
tip = PopUpManager.createPopUp( this, <<your class
here>>, false ) as <<your class here>>;
tip.move( p.x+pt.width+5, p.y );
When the mouse rolls over the TextInput (or whatever control
you want), showInfo is called. The showInfo function converts the
position of the TextInput (that's event.target) to global
coordinates. Then the pop-up is created and moved into position,
just to the right of the TextInput.
I have working code if you want it.

Similar Messages

  • Absolute coordinates using DefaultKeyboardFocusManager

    I want to rerun events through Robot to recreate a user's actions. I created my own version of DefaultKeyboardFocusManager to print all events to a file. When I looked at the file I realized that all of the mouse-move coordinates were relative, not absolute, i.e. they are in reference to every widget the mouse happens to lie over. The application I need to test is large and all widgets (JPanels, et al) are not named, so I cannot reference them by name (if all widgets were named, I could keep track of relative positioning as the mouse enters each new widget). Is there a way to generate absolute coordinates instead of relative coordinates? The easiest solution would be a method to toggle between relative and absolute coordinates, but that does not appear to exist.

    not that i agree with your methods but there is a Component method called
    getLocationOnScreen(). also, im fairly sure there is a method to translate a relative component
    location to a location relative to its parent, but im embarrassed to say i forgot what
    its called.
    but of course thats exactly why this sort of question should be posted in the Swing forum instead...

  • How to get Absolute Coordinates of a Field.

    I know that the properties "x" and "y" of any field of PDF Form will give me the coordinates relative to the parent object.
    How to get the absolute coordinates of any object (or any field) on a PDF Form?
    My objective is to make a Subform Visible or Hidden and reposition it close to any other field in order to display some extra text to show more info about the required field.
    How I can do that?
    Tarek.

    Hi,
    I wrote a recursive function that will go up in the forms hierarchy and summarizes the x and y coordinates of the parent objects.
    var vX = 0
    var vY = 0;
    function findCoordinates(vNode) {
        if (vNode !== null) {
            if (vNode.className === "field" || vNode.className === "subform") {
                console.println(vNode.name + " > " + vNode.x);
                var xUnit = vNode.x.match(/(mm|cm|pt|in)/g);
                var xValue = parseFloat(vNode.x.replace(xUnit, ""));
                if (xUnit === "mm") {
                    vX += xValue / parseFloat("25.4");
                } else if (xUnit === "cm") {
                    vX += xValue / parseFloat("2.54");
                } else if (xUnit === "pt") {
                    vX += xValue / 72;
                } else {
                    vX += xValue;
                var yUnit = vNode.y.match(/(mm|cm|pt|in)/g);
                var yValue = parseFloat(vNode.y.replace(yUnit, ""));
                if (yUnit === "mm") {
                    vY += yValue / parseFloat("25.4");
                } else if (yUnit === "cm") {
                    vY += yValue / parseFloat("2.54");
                } else if (yUnit === "pt") {
                    vY += yValue / 72;
                } else {
                    vY += yValue;
            findCoordinates(vNode.parent);
        var vCoordinates = (Math.round(vX * 2) / 2) + "mm " + (Math.round(vY * 2) / 2) + "mm";
        return vCoordinates;
    Textfeld2.rawValue = findCoordinates(xfa.resolveNode("Teilformular1.Teilformular2.Textfeld1"));

  • Getting selected values from selectManyChoice component inside valueChangeListener

    Hwo do I get the selected values from the selectManyChoice component inside the valueChangeListener.
    The API docs for valueChangeEvent.getNewValue() show the return type as java.lang.object. This is good for single value what does it return in case of multiple values.
    My drop down has string values so I am expecting a set of string values.

    JDev - 11.1.2.3
    public void onRegionSelect(ValueChangeEvent event) {
    event.getComponent().processUpdates(FacesContext.getCurrentInstance());
    if (!PhaseId.INVOKE_APPLICATION.equals(event.getPhaseId())) {
    event.setPhaseId(PhaseId.INVOKE_APPLICATION);
    event.queue();
    } else {
    List<Object> values = Arrays.asList(event.getNewValue());
    System.out.println("Value changed ==>> "+values.size());
    DCBindingContainer dc =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iter = dc.findIteratorBinding("RegVO1Iterator");
    ViewObject vo = iter.getViewObject();
    StringBuffer regions = new StringBuffer();
    for(Object index : values){
    String iIndex = (String)index;
    Row row  = vo.getRowAtRangeIndex(Integer.parseInt(iIndex));
    regions.append((String)row.getAttribute("Region")+",");
    String reg = regions.toString();
    if(reg.endsWith(","))
    reg = reg.substring(0,reg.lastIndexOf(","));
    System.out.println(reg);

  • When does a JTabbedPane set the size of the component inside a tab?

    I would like to know how big a component inside a tab is directly after I've added it to a tab in a JTabbedPane.
    I thought once I've "added" a component via the JTabbedPane.add(String, Component) method, the Component would be realized with correct sizes.
    Where or when should I request the information about how big a component has become inside a tab??
    Example:
    1. "Add" a tab via the menu.
    2. Notice that the size of the panel has not changed even though we see it on the screen.
    -Js
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JFrame;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JPanel;
    import javax.swing.JTabbedPane;
    public class TabbedPaneShowingTest extends JFrame
         //GUI
         private JTabbedPane tabbedPane;
              private JPanel tabPanel;
         //MENU
         private JMenuBar mainMenuBar;
              private JMenu actionMenu;
                   private JMenuItem addTabMenuItem;
         public TabbedPaneShowingTest()
              this.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
              this.setContentPane(getTabbedPane());
              this.setJMenuBar(getMainMenuBar());
              this.pack();
              this.setVisible(true);
         //GUI
         private JTabbedPane getTabbedPane()
              if(tabbedPane == null)
                   tabbedPane = new JTabbedPane();
                   tabbedPane.setPreferredSize(new Dimension(100,100));
              return tabbedPane;
         private JPanel getTabPanel()
              if(tabPanel == null)
                   tabPanel = new JPanel();
                   tabPanel.setBackground(Color.GREEN);
              return tabPanel;
         //MENU
         private JMenuBar getMainMenuBar()
              if(mainMenuBar == null)
                   mainMenuBar = new JMenuBar();
                   mainMenuBar.add(getActionMenu());
              return mainMenuBar;
         private JMenu getActionMenu()
              if(actionMenu == null)
                   actionMenu = new JMenu("Action");
                   actionMenu.add(getAddLineMenuItem());
              return actionMenu;
         private JMenuItem getAddLineMenuItem()
              if(addTabMenuItem == null)
                   addTabMenuItem = new JMenuItem("Add Tab");
                   addTabMenuItem.addActionListener(new ActionListener()
                        public void actionPerformed(ActionEvent e)
                             System.out.println("BEFORE TAB SIZE: " + getTabPanel().getWidth() + "," + getTabPanel().getHeight());
                             getTabbedPane().add("Tab",getTabPanel());
                             System.out.println("AFTER TAB SIZE: " + getTabPanel().getWidth() + "," + getTabPanel().getHeight());
              return addTabMenuItem;
         public static void main(String args[])
              new TabbedPaneShowingTest();
    }

    Once again... a little experimenting is a good thing. Just use SwingUtilities.InvokeLater() to retrieve the proper size.
    -Js
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JFrame;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JPanel;
    import javax.swing.JTabbedPane;
    import javax.swing.SwingUtilities;
    public class TabbedPaneShowingTest extends JFrame
         //GUI
         private JTabbedPane tabbedPane;
              private JPanel tabPanel;
         //MENU
         private JMenuBar mainMenuBar;
              private JMenu actionMenu;
                   private JMenuItem addTabMenuItem;
         public TabbedPaneShowingTest()
              this.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
              this.setContentPane(getTabbedPane());
              this.setJMenuBar(getMainMenuBar());
              this.pack();
              this.setVisible(true);
         //GUI
         private JTabbedPane getTabbedPane()
              if(tabbedPane == null)
                   tabbedPane = new JTabbedPane();
                   tabbedPane.setPreferredSize(new Dimension(100,100));
              return tabbedPane;
         private JPanel getTabPanel()
              if(tabPanel == null)
                   tabPanel = new JPanel();
                   tabPanel.setBackground(Color.GREEN);
              return tabPanel;
         //MENU
         private JMenuBar getMainMenuBar()
              if(mainMenuBar == null)
                   mainMenuBar = new JMenuBar();
                   mainMenuBar.add(getActionMenu());
              return mainMenuBar;
         private JMenu getActionMenu()
              if(actionMenu == null)
                   actionMenu = new JMenu("Action");
                   actionMenu.add(getAddLineMenuItem());
              return actionMenu;
         private JMenuItem getAddLineMenuItem()
              if(addTabMenuItem == null)
                   addTabMenuItem = new JMenuItem("Add Tab");
                   addTabMenuItem.addActionListener(new ActionListener()
                        public void actionPerformed(ActionEvent e)
                             System.out.println("BEFORE TAB SIZE: " + getTabPanel().getWidth() + "," + getTabPanel().getHeight());
                             getTabbedPane().addTab("Tab",getTabPanel());
                             SwingUtilities.invokeLater(new Runnable()
                                  public void run()
                                       System.out.println("AFTER TAB SIZE: " + getTabPanel().getWidth() + "," + getTabPanel().getHeight());
              return addTabMenuItem;
         public static void main(String args[])
              new TabbedPaneShowingTest();
    }

  • Declarative Component inside of an Iterator

    I am building a custom declarative component, and that's how I am using it from the main page:
    <af:iterator var="row" value="#{viewScope.manageMinorCrBB.linesForAddGroup}" id="it1">
    <af:panelGroupLayout id="id13" layout="horizontal" halign="left">
    <af:commandButton id="cmdAddLine" text="Add" actionListener="#{viewScope.manageMinorCrBB.addLines}" />
    <af:commandButton id="cmdRmvLine" text="remove" actionListener="#{viewScope.manageMinorCrBB.removeLines}" />
    <!-- THIS TAG DOESN'T WORK !!!!! -->
    <af:declarativeComponent id="dynfld1"
    viewId="/project/dynamicFieldComponent.jspx"
    rows="4" maxColumns="3"
    optionalFields="#{row.optionalFields}"
    model="#{row.model}"
    selectedOptionalField="#{row.selectedOptionalField}"
    postButtonTitle="Save"
    postListener="viewScope.manageMinorCrBB.saveAndRefreshAction"
    required="false" />
    </af:panelGroupLayout>
    </af:iterator> <!-- Component Tab to show OutOfScoped and Scopped DCCs
    Information will be shown based in Drools Logic -->
    <!-- THIS TAG WORKS !!!!! -->
    <af:declarativeComponent id="dynfld2"
    viewId="/project/dynamicFieldComponent.jspx"
    rows="8" maxColumns="2"
    optionalFields="#{viewScope.manageMinorCrBB.lineFind.optionalFields}"
    model="#{viewScope.manageMinorCrBB.lineFind.model}"
    selectedOptionalField="#{viewScope.lineFind.selectedOptionalField}"
    postButtonTitle="Search"
    postListener="viewScope.manageMinorCrBB.searchAction"
    required="true"
    />
    and that's a fragment of my DCC:
    If I call the components individually is working but If I put my component inside of an iterator I can't get the component's attributes by using this method:
    RichDynamicDeclarativeComponent _this = (RichDynamicDeclarativeComponent )
    getValueObject("#{component}",RichDynamicDeclarativeComponent .class);
    What am I doing wrong?, should I use the same "#{component}" expression???
    Thank you, I would really appreciate your help!
    Maik

    Hi,
    try af:forEach. the af:iterator stamps it children and does not create component instances
    Frank

  • Calling a java webdynpro component inside a SAP Workflow

    Hi Experts ,
    Is it possible to call a java webdynpro component inside a SAP Workflow  from the task .
    If yes please let me the procedures .
    Regards
    Sarmistha

    Someone has posted this, Take a look if it helps you:
    "1. Activate your service in transaction SICF;
    2. Activate the WS_HANDLER in SICF (probably you have to do more in SICF, SAP notes will be given to you in your browser when you want to call the service);
    3. Make the correct settings in WF_HANDCUST;
    4. Do ofcourse SWU3 including webserver activities;
    5. Define how you want to call the service via WF_EXTSRV including parameters;
    6. Generate a task from your defined service in WF_EXTSRV;
    7. Incorporate this task in your workflow definition;
    8. Test your workflow. Here you probably get some errror messages that the service cannot be called by for instance inactive ICF services. Activate the correct paths in transaction SICF."
    Regards, IA
    <MODERATOR: For reference, that 'Someone' was Joost in [this thread|Re: Callback from WebDynpro to Workflow]>
    Edited by: Mike Pokraka on Jun 19, 2008 4:52 PM

  • JavaFX component inside a Java component?

    Hi,
    To place a Java component inside a JavaFX component is easy using javafx.ext.swing.SwingComponent.wrap(), like the following code:
        var splitPane = new JSplitPane(); // Java component
        scene: Scene {
            content: [
                SwingComponent.wrap(splitPane)
        }But, how can one do the other way around, i.e. how to place a JavaFX component inside a Java component?
    If I try it like this:
    var myTextBox = TextBox {
        text: "SampleText"
        columns: 12
        selectOnFocus: true
    splitPane.setLeftComponent(myTextBox);I get an error saying:
    setLeftComponent(:java.awt.Component) in javax.swing.JSplitPane cannot be applied to (javafx.scene.control.TextBox)

    Oh, crap :-(
    This means that if you don't want to use JFXtras, and if you really need a Java component on a high level in your UI-design, you'll need to go Java all the way since you cannot incorporate JavaFX nodes anywhere...
    Can't believe Sun claims a friendly Java-JavaFX interoperability when it's actually just one-way.

  • Finding a component inside jsf fragment using javascript in adf

    Hello all,
    I am using jdeveloper 11.1.1.5.
    I want to find a component inside my jsf frgament using javascript.
    Like inside jspx page I was able to find the component using
    AdfPage.PAGE.findComponentByAbsoluteId("ID");
    Now my requirement is I have a jsf fragment and I want to find component inside jsf frgament using javascript.
    How can I find the component?
    Please suggest
    Thanks
    Edited by: Navin K on Dec 21, 2011 4:24 PM

    Hi all..
    I am using Jdeveloper 11.1.2.1.0
    The code i used is given below. When i run this i always getting the message (ie region not found) in the else case of java script.
    How can i solve this. How can i take the region r1 in the javascript..
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:document title="Index.jsf" id="d1">
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:pageTemplate viewId="/AssetTrackingTemplate.jsf" id="pt1">
    <f:facet name="top"/>
    <f:facet name="first">
    <af:panelAccordion id="pa1">
    <af:showDetailItem text="Master Details" id="sdi1">
    <af:spacer width="10" height="10" id="s3"/>
    <af:commandLink text="Home" id="cl8" inlineStyle="font-size:small; font-weight:bold;">
    <af:setActionListener from="/WEB-INF/task-flow-Home.xml#task-flow-Home"
    to="#{pageFlowScope.dynRegionBean.taskFlowId}"/>
    </af:commandLink>
    <af:spacer width="10" height="10" id="s1"/>
    <af:tree value="#{bindings.GenTopMenu1.treeModel}" var="node"
    selectionListener="#{bindings.GenTopMenu1.treeModel.makeCurrent}"
    rowSelection="single" id="t1">
    <f:facet name="nodeStamp">
    <af:group id="g1">
    <af:outputText value="#{node.Description}" id="ot2"
    rendered="#{node.MenuType==1}"/>
    <af:commandLink text="#{node.Description}" id="cl1"
    rendered="#{node.MenuType==2}" partialSubmit="true"
    immediate="false"
    actionListener="#{pageFlowScope.dynRegionBean.launchTaskFlow}">
    <f:attribute name="Definition" value="#{node.Definition}"/>
    </af:commandLink>
    </af:group>
    </f:facet>
    </af:tree>
    </af:showDetailItem>
    </af:panelAccordion>
    </f:facet>
    <f:facet name="middle">
    <af:region value="#{bindings.dynamicRegion1.regionModel}" id="r1"/>
    </f:facet>
    <f:facet name="end"/>
    <f:facet name="copyright">
    <af:outputText value="All Rights Reserved By Innovation ITC" id="ot1"
    inlineStyle="text-align:center; color:inherit;"/>
    </f:facet>
    </af:pageTemplate>
    </af:form>
    <f:facet name="metaContainer">
    <af:resource type="javascript">
    function customHandler(event) {
    var region=AdfPage.PAGE.findComponentByAbsoluteId("r1");
    if(region!=null)
    alert("Region Found");
    var exportCmd = region.findComponent("cb1");
    var actionEvent = new AdfActionEvent(exportCmd);
    actionEvent.forceFullSubmit();
    actionEvent.noResponseExpected();
    actionEvent.queue();
    else {
    alert("Region Not Found")
    </af:resource>
    </f:facet>
    </af:document>
    </f:view>
    Thanks,
    gtg.
    Edited by: gtg on 08-Feb-2012 00:14

  • How can i insert include_once inside fluid grid layout?...

    How can i insert include_once inside fluid grid layout?...

    Hi
    You will have to insert this in code view.
    If it is inside a FG div, select 'split' screen mode, click in the required div in design view and this will highlight the selection in code view.
    PZ

  • Access a component inside external swf file

    Hi, I loaded a external swf file that it is a dialog.
    var swfLoader : Loader = new Loader();
    var swfURL : URLRequest = new URLRequest("dialog.swf");
    swfLoader.load(swfURL);
    swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,imgLoaded);
    function imgLoaded(event:Event):void
    var movie : * = swfLoader.content;
    var clip : MovieClip = movie;
    parent.addChild(clip);
    Now, inside the movieClip there is a TextField component
    named message that i want to change its 'text' property.
    The question is: How can i access to this property to change
    it?
    Regards

    okay,
    I have the image component in ProductCatalogThumbnail.mxml, which has an id of "img"
    so, i created a public variable in the file and a public function that returns the value of the object.
    public var imagecopy:Object;
            [Bindable]
             public function imagecopyfunction():Object{
             imagecopy  = img;
             return imagecopy;
    now, I want to access this image in the mxml file ProductList.mxml in a function
      public function init():void
          ProductCatalogThumbnail.imagecopy.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
         // accepting a drag/drop operation...
           this.area.addEventListener( DragEvent.DRAG_ENTER, acceptDrop );
           // handling the drop...
          //this.area.addEventListener( DragEvent.DRAG_DROP, handleDrop );
    I tried to use the variable, and then i tried to use the function:
    I got this error when I tried the variable : 1119: Access of possibly undefined property imagecopy through a reference with static type Class.
    ProductCatalogThumbnail.imagecopy.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
    and this error when i tried the function:  1061: Call to a possibly undefined method imagecopyfunction through a reference with static type Class.
    ProductCatalogThumbnail.imagecopyfunction().addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
    i made sure i imported ProductCatalogThumbnail file in the beginning of my application.
    I am not sure what went wrong.

  • Identify y value of a control in a component inside another component

    Hi,
    I need to programmingly find out the y value of a control.
    But it is inside a component that is inside anther component. Also,
    it is inside a VBox. In the main file, I trace it using:
    this[comp1][comp2].VBoxName.y
    But it shows 0, which is not correct.
    Any ideas?

    You'll probably have to make [Bindable] public variables or
    set methods in your components to pass that value all the way down
    to where you need to reference it.
    Try passing it from the outer parents down to the children,
    not referencing from the children up to the parents.

  • Absolute Position of Component

    hi!
    i'm currently creating a formvalidator.
    is a field-validation failed, the validator paints a small red dot on the glasspane over the lower left corner of the field/component.
    my problem now is the following:
    is the component i want to validate in a container, the getLocation()-method of the component does not give me the absolute position of the component... so my red dot is painted on the false position.
    does anybody know how i could get the absolute position of my component? (absolute; relative to my topcontainter, the JFrame or the JDialog)
    thx a lot!
    greetz
    swissManu

    Hi,
    have a look here :
    http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/SwingUtilities.html#convertPoint(java.awt.Component,%20int,%20int,%20java.awt.Component)
    it should permit you converting coordinates relatively to anything ;-)
    Nico

  • How to populate Reference Component inside an EBO/EBM

    Hi All,
    I have a requirement where I am getting multiple types of data, Worker and Job from a file. 1 Worker can have multiple Jobs. I am using SyncWorkerEBM to map this data. I am able to map all the fields related to Worker successfully but when it comes to mapping the Job data, there is a reference component present inside this EBM JobReference. But when I expand it I see only the Identification elements in this and no fields which are present in the actual Job EBO.
    My question is how to populate the fields that are present in the referenced component (EBO) inside the single components?
    It is something similar to populating ShipToPartyRefrence details coming inside the SalesOrder.
    Regards,
    Neeraj Sehgal

    Hello all
    as explained it is always better to use the BADIs. The Function modules are internally used (form the SAP perspective). If you perform later SAP updates/upgrades etc. you are on the save side if you use the BADIs and if you try to prepare an OSS you will be supported. If you try to prepare an OSS regarding the function module in most cases you will not be sucessful.
    But may be take a look here:
    BAPI_BUS1077_CHANGE and BAPI_BUS1077_DELETE for referenced data
    and here
    BAPI_BUS1077_CHANGE failling for identifier long texts
    The use of the BAPIs is still not easy.
    With best regards
    C.B.
    PS: take a look here may be:
    http://richard-harper.me.uk/sfmdr_sitemap/fglists/groups/z1GY.html
    or here
    http://www.se80.co.uk/sapreports/r/rc1_/rc1_1077_bapi_example_change.htm
    Edited by: Christoph Bergemann on Oct 2, 2010 5:16 PM
    Edited by: Christoph Bergemann on Oct 2, 2010 5:19 PM
    Edited by: Christoph Bergemann on Oct 2, 2010 5:20 PM

  • How to use file upload component inside a portlet

    Hi
    Thank you for reading my post.
    does file upload works inside portlets ?
    can some one help me with a sample code , does it need some tricks ?
    Thank you

    any help is welcomeLegolas,
    You could try your own implementation. Someone was able to implement a file upload with Creator 2004Q4 and the O'Reilly Servlet. See http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=50186.
    You will have to configure O'Reilly Servlet's "MultiPart Filter" in your application. Creator 2 uses a same approach (a filter) to accomplish this. Given that the file upload component is not supported on portlets, this leads me to the following: I don't know anything about portlets and portlet containers, but I'd check first for some architechtural restriction in the portlet subsystem that avoids the use of a filter for a file upload. If think this could be the only thing that will restrict you to implement your own file upload.
    Hope this helps.
    Antonio

Maybe you are looking for