[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2009-05-03 Thread fribeiro1
Can something be done to improve that syntax in a later release, Wesley? Looks awkward to me, don't know if the standard sheds any good light there. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228146#4228146 Reply to the post : http://www.jboss.org/index.

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2009-05-02 Thread edre.py
Thanks ... But if this condition is not met...could get the PortletRequest object instance? I need to extract the Preferences of the portlet. like PortletPreferences reqPreferences = rRequest.getPreferences(); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2009-05-01 Thread wesleyhales
You need to listen for the correct request: | Object responseObject = FacesContext.getCurrentInstance().getExternalContext().getRequest(); |if (responseObject instanceof RenderRequest) { | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227651#

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2009-05-01 Thread edre.py
Hi... Im get Preferences like PortletRequest req = (PortletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest(); and im get te exception in cast org.jboss.seam.web.IdentityRequestWrapper HelpMe please... View the original post : http://www.jboss.org/index.html?modul

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-17 Thread franco12
YES ! thanks a million Thomas :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978747#3978747 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978747 ___ jboss-user mailing lis

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-17 Thread [EMAIL PROTECTED]
PortletRequest request = (PortletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest(); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978743#3978743 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-17 Thread franco12
I've 2 portlet instances with 2 different preference parameters I'm just trying to retrieve this portlet preference parameters from my jsf portlet. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978735#3978735 Reply to the post : http://www.jboss.com/index.

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-16 Thread franco12
ok :) first of all I'd like to say thank you for bearing with the n00b I am ok now eclipse is ok with FacesContext but now i'm facing to the 'cast' problem by "casting to a PortletRequest", did you mean : PortletRequest prefs = FacesContext.getCurrentInstance().getExternalContext().getRequest();

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-16 Thread [EMAIL PROTECTED]
Add the JSF API to Eclipse classpath then... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978627#3978627 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978627 ___ jboss-user

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-16 Thread franco12
sorry I don't get it :-s FacesContext doesn't work alone eclipse suggests me FacesContextWrapper or FacesContextFactoryImpl but not FacesContext alone View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978611#3978611 Reply to the post : http://www.jboss.com/in

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-16 Thread [EMAIL PROTECTED]
I need to wake up... I meant: FacesContext.getCurrentInstance().getExternalContext().getRequest() Then you can cast it to a PortletRequest. FacesContext is part of the JSF public API. http://java.sun.com/javaee/javaserverfaces/1.0/docs/api/javax/faces/context/FacesContext.html View the original

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-16 Thread franco12
did you mean PortletPreferences prefs = FacesContextWrapper.getExternalContext.getRequest().getPreferences(); or PortletPreferences prefs = FacesContextFactoryImpl.getExternalContext.getRequest().getPreferences(); FacesContext cannot be resolved FacesContextWrapper or FacesContextFactoryIm

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-16 Thread [EMAIL PROTECTED]
getSupprimer should have no parameter. You can get the request from FacesContext.getExternalContext.getRequest(); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978568#3978568 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-16 Thread franco12
ok thanks for your help Thomas :) I removed "extends GenericPortlet" and the doView method and I updated getSupprimer() like this | import javax.portlet.PortletPreferences; | import javax.portlet.PortletSecurityException; | import javax.portlet.RenderRequest; | import javax.portlet.Rende

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-16 Thread [EMAIL PROTECTED]
Oups sorry i replied too quickly i missed that you were working on a JSF portlet. On a JSF portlet you don't need to extend GenericPortlet and render() won't be called. You need to pass a JSF page as parameter in portlet.xml in getSupprimer() you should access the preferences like this: |

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-16 Thread franco12
"[EMAIL PROTECTED]" wrote : It looks like you didn't specify your XML descriptors correctly. | | You should start from the HelloWorld portlet and extend it step by step: | http://labs.jboss.com/portal/portletswap/portlets_tutorial.html hu sorry, I had to refresh anoter time it's working wi

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-16 Thread [EMAIL PROTECTED]
It looks like you didn't specify your XML descriptors correctly. You should start from the HelloWorld portlet and extend it step by step: http://labs.jboss.com/portal/portletswap/portlets_tutorial.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978524#3978

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-16 Thread franco12
"[EMAIL PROTECTED]" wrote : It doesn't look like a portlet to me, you are not extending GenericPortlet or anything else. | | sorry I'm a noob, what have I to do except adding "extends GenericPortlet" ? Because now, I've having this error Object not found mdpApp.MDP_contribution_consultatio

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-16 Thread [EMAIL PROTECTED]
It doesn't look like a portlet to me, you are not extending GenericPortlet or anything else. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978517#3978517 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978517 ___

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-16 Thread franco12
The problem is that the program won't pass through 'doView' MDP_contribution_consultation.java import javax.portlet.PortletPreferences; | import javax.portlet.PortletSecurityException; | import javax.portlet.RenderRequest; | import javax.portlet.RenderResponse; | import javax.portlet.P

[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet

2006-10-16 Thread franco12
I forgot to say thanks ^^ regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978504#3978504 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978504 ___ jboss-user mailing