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.
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
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#
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
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
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&
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.
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();
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
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
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
did you mean
PortletPreferences prefs =
FacesContextWrapper.getExternalContext.getRequest().getPreferences();
or
PortletPreferences prefs =
FacesContextFactoryImpl.getExternalContext.getRequest().getPreferences();
FacesContext cannot be resolved
FacesContextWrapper or FacesContextFactoryIm
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
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
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:
|
"[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
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
"[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
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
___
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
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
21 matches
Mail list logo