Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
ilke Muhtaroglu
tags appear at JSF portlet screen !?
16 de Janeiro de 2011 23:48
Resposta

ilke Muhtaroglu

Ranking: Regular Member

Mensagens: 223

Data de entrada: 12 de Maio de 2009

Mensagens recentes

Hi,

I had portlets developed without plugin-sdk, that works fine with JSF at 6.05.

But when I create the portlets through plugin-SDK 6.05, and deploy them to the trunk Liferay 6.10, I dont get any error but a very interesting thing:

The tag code ("#{viewUserController.currentViewUser.userScreenName}") appears at the jsf input/output boxes as depicted at the image below.

URL= http://www.ressim.net/show.php/2809293_jsfportlettags-jpg.html


The JSF *.jsp code is as follows:

Here the JSTL code appears at the screen now at 6.10 very interestingly #{viewUserController.currentViewUser.userScreenName}




 1
 2
 3<tr>
 4                                 
 5 <h:panelGrid columns="2">
 6 <h:outputText value="Bakan Kullanıcı:" />
 7
 8 <h:inputText id="screenName" styleClass="kontroller"
 9    value="#{viewUserController.currentViewUser.userScreenName}"
10    title="ScreenName" />
11
12 <h:outputText value="Bakılan Kullanıcı:" />
13
14 <h:inputText id="selectedUserScreenName" styleClass="kontroller"
15    value="#{viewUserController.currentViewUser.selectedUserScreenName}"
16    title="selectedUserScreenName" />
17
18 <h:outputText value="Bakılma Tarihi:" />
19
20 <h:inputText id="viewDate" styleClass="kontroller"
21    value="#{viewUserController.currentViewUser.viewDate}"
22    title="viewDate" />
23 </h:panelGrid>
24
25 </tr>






This is the code portlet.xml of the portlet, here I use this portlet bridge "com.sun.faces.portlet.FacesPortlet". May this JSF-bridge be causing this unstable behavior of the JSF?


 1
 2
 3 <portlet>
 4   <portlet-name>1</portlet-name>
 5   <display-name>View User</display-name>
 6   <portlet-class>com.sun.faces.portlet.FacesPortlet</portlet-class>
 7   <init-param>
 8       <name>com.sun.faces.portlet.INIT_VIEW</name>
 9       <value>/post/Search.jsp</value>
10 </init-param>   
11       
12       
13<supports>
14 <mime-type>text/html</mime-type>
15 <portlet-mode>view</portlet-mode>               
16</supports>


Any help is welcome, If it will solve How can I use portletfaces bridge at portlet.xml ?



ilke