<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Messages posted by "Passero"]]></title>
		<link>http://jforum.icesoft.org/JForum/posts/listByUser/95087.page</link>
		<description><![CDATA[Messages posted by "Passero"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Layout in liferay is lost with partialSubmit</title>
				<description><![CDATA[ I notice this strange thing when i put my portlets in liferay (haven't tested in another portal).
When i submit something, the layout gets lost. It seems that my CSS does not get applied. 
When i refresh the page by using F5, my layout is back. 

I notice that this always happens when their is a partialSubmit (no URL change). When their is a full submit, the layout stays ok. 

Does anybody what this could be and how to resolve it?]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/17729/65022.page#65022</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/17729/65022.page#65022</link>
				<pubDate><![CDATA[Wed, 6 Oct 2010 03:56:31]]> GMT</pubDate>
				<author><![CDATA[ Passero]]></author>
			</item>
			<item>
				<title>Layout is gone after submit</title>
				<description><![CDATA[ I have this strange thing when i put a dataPaginator below my table. When the portlet initial loads, it looks fine but when i press a button on the dataPaginator, the complete layout is messed up. It seems like suddenly he can't find the CSS anymore and the layout is just gone... 


It seems like the css can not be found when i click something on the dataPaginator but the images are shown correctly so the path does not change... 
I tried
<ice:outputStyle href="/xmlhttp/css/xp/xp-portlet.css"/>

and

<ice:outputStyle href="/css/xp/xp-portlet.css"/>

But it is the same... 


edit: 

at first i thought it was the dataPaginator but now it seems every time i submit something. 

I also hae a selectOneMenu on my page with a partialSubmit and when i select a value, the layout is also gone... ]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/17728/65020.page#65020</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/17728/65020.page#65020</link>
				<pubDate><![CDATA[Wed, 6 Oct 2010 01:36:30]]> GMT</pubDate>
				<author><![CDATA[ Passero]]></author>
			</item>
			<item>
				<title>inputHidden blocks functionality</title>
				<description><![CDATA[ This code does not work:

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;ice:outputText value="#{ContextMenu.id}"/&gt;
&lt;ice:commandLink value="Buildings" actionListener="#{ContextMenu.clicked}"&gt;
	   					&lt;f:param name="type" value="buildings"/&gt;
	   				&lt;/ice:commandLink&gt;
</pre>
		</div>

This is my backing bean: 

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
public String getId&#40;&#41;
	{
		String id = &#40;String&#41;PortelUtils.getSharedSessionAttribute&#40;"planetID"&#41;;
				return id;
		
	}

public void clicked&#40;ActionEvent e&#41;
	{
		System.out.println&#40;"Clicky"&#41;;
		String type = &#40;String&#41;FacesContext.getCurrentInstance&#40;&#41;.getExternalContext&#40;&#41;.getRequestParameterMap&#40;&#41;.get&#40;"type"&#41;;
		
		PortelUtils.setSharedSessionAttribute&#40;"buildingType", type&#41;;
		System.out.println&#40;"Clicked: " + type&#41;;
		OnDemandRenderer onDemandRenderer =
			getRenderManager&#40;&#41;.getOnDemandRenderer&#40;"BUILDING_GROUP"&#41;;

		onDemandRenderer.requestRender&#40;&#41;;
	}
</pre>
		</div>

The system.out.println("clicky"); does not show in my output... Nothing happens. 

However, when i justchange the inputHidden to outputText, nothing else, just that. Everything works as expected... 

Is this normal behaviout and is their something i don't know or what is happening here? ]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/16289/61222.page#61222</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/16289/61222.page#61222</link>
				<pubDate><![CDATA[Mon, 8 Mar 2010 13:54:36]]> GMT</pubDate>
				<author><![CDATA[ Passero]]></author>
			</item>
			<item>
				<title>passing parameter to commandButton in panelSeries</title>
				<description><![CDATA[ I have this:

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;ice:panelSeries  var="planet" value="#{PlanetBean.planets}"&gt;
   &lt;ice:commandButton value="Manage Planet" actionListener="#{PlanetBean.showPlanet}" &gt;
                    		&lt;f:attribute name="page" value="#{planet.id}"/&gt; 
                    		
                    	&lt;/ice:commandButton&gt;
&lt;/ice:panelSeries&gt;
</pre>
		</div>

Actionlistner:

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
public void showPlanet&#40;ActionEvent e&#41;
	{
		System.out.println&#40;"Clicked"&#41;;
		System.out.println&#40;"Count: " + e.getComponent&#40;&#41;.getAttributes&#40;&#41;.size&#40;&#41;&#41;;
		String name = e.getComponent&#40;&#41;.getAttributes&#40;&#41;.keySet&#40;&#41;.iterator&#40;&#41;.next&#40;&#41;;
		String id = &#40;String&#41;e.getComponent&#40;&#41;.getAttributes&#40;&#41;.values&#40;&#41;.iterator&#40;&#41;.next&#40;&#41;;
		System.out.println&#40;"Selecting: " + id&#41;;
	}
</pre>
		</div>

When i click a button, i see the output Clicked and count but my id is empty. 
When i change the attribute to value="something" then it gets passed correctly but when i use the var from my panelSeries i don't get anything. 
However i need this... 

Anybody now what's wrong with this? When i put #{planet.id} in a normal ice:outputText it gets shown correctly so it's definitly not a problem in that object. It seems that the moment the engine want to set the value of that parameter, he can't access the object planet. 

Is their another way to achieve this? I just want to get the ID of the selected item from my panelSeries in my backing bean. ]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/16213/61014.page#61014</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/16213/61014.page#61014</link>
				<pubDate><![CDATA[Mon, 1 Mar 2010 15:51:51]]> GMT</pubDate>
				<author><![CDATA[ Passero]]></author>
			</item>
			<item>
				<title>Styles does not seem to work in 1.8.2</title>
				<description><![CDATA[ I have problems using styles in the latest version... 
I recently updated from an older version and their everything worked but now i'm having problems. 

For example the cellpadding or cellspacing on the ice:panelGrid does not do a thing
THe columnClasses of the panelGrid also do not do a thing... 

At first i thought it was my stylesheet that was cached or not called correctly so i tried adding my custom styles to the default css of icefaces. That also does not work. 
If i change something on the default styles from the css, that works so i'm pretty sure it isn't caching. 

THan, the dataTable also acts strange. My headers have a different width than my actual colums although i have definied the columnWidths and have defined the same width for the elements of my actual columns. 

Also, if i define styleClass or style in an element it does not work... 
For example styleClass in the outputText. He does not apply it in some strange way. 

I just replaces the icefaces libraries and icefaces default stylesheets. For the rest nothing has changed in my application and the former version did work. 
I do not know which version it was because i got the libraries from some examples i downloaded. 

Perhaps someone knows the version... I downloaded the icefaces examples from the liferay SVN repository. I'm using icefaces with liferay. 

Anybody an idea what this could be? It drives me mad. I have been working for hours to clean up the style.]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/16110/60732.page#60732</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/16110/60732.page#60732</link>
				<pubDate><![CDATA[Wed, 17 Feb 2010 15:43:36]]> GMT</pubDate>
				<author><![CDATA[ Passero]]></author>
			</item>
			<item>
				<title>Tabs and submitting of the form</title>
				<description><![CDATA[ I have a page with 2 tabs. Below the tabs is a single submit button. 
I notice that when i am on tab 1 and press the submit button, the values of the second tab aren't updated. The bean setters from the second tab aren't called. 

So when i do changes on tab 1, move to tab 2 and do some changes and then press the submit button, i only get the new values for the fields in tab2. 
Is their a proprty so i can force all the fields in the tab instead on the tab i am currently on? 
It is in a single form so i thought it would be normal behaviour that when i have a commandBUtton with an action, all my fields in my managedbean from that form are updated but it seems only those from the current tab are updated.]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/16057/60569.page#60569</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/16057/60569.page#60569</link>
				<pubDate><![CDATA[Sat, 13 Feb 2010 04:06:30]]> GMT</pubDate>
				<author><![CDATA[ Passero]]></author>
			</item>
			<item>
				<title>Re:Can't deploy icefaces application on tomcat</title>
				<description><![CDATA[ I use all the latest versions. 

Icesoft 1.8.2, tomcat 6.0.18 and JSF 1.2
I'm also using liferay so my war files are actually portlets. I'm using liferay 5.2.3

I just completed recreating my project and everything seems to work. 
I don't know what went wrong... It has to be a file or configuration or something like that...]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/16046/60539.page#60539</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/16046/60539.page#60539</link>
				<pubDate><![CDATA[Fri, 12 Feb 2010 08:02:41]]> GMT</pubDate>
				<author><![CDATA[ Passero]]></author>
			</item>
			<item>
				<title>Can't deploy icefaces application on tomcat</title>
				<description><![CDATA[ I have been looking for this over a day and it gives the creeps :) 

I have some examples in icefaces and when i deploy those, everything works fine. 
When i deploy my application, i get an error when deploying:
Error: ListnerStart

I can't seem to find anything in the errorlogs. I don't have a clue were to start looking... 

I believe it definitly has something to do with icefaces because when i put the icefaces libraries in the lib folder of tomcat, none of my JSF applications seems to work. 
I get the ListnerStart on each an every JSF application. 
WHen i put the icefaces lib in my application instead of the lib folder, only my application give that error. 

Also, i tried starting from a working iceface example it works but when i apply my code and faces-config, web.xml i get this error. 

I don't know were to look for the error... My web.xml is exactly the same as the web.xml from an example so i don't think this could be the issue. My faces-config only has normal managedBean, nothing exotic. 

Does anybody know what this could be or were to start looking? 

I am now recreating my project and add step per step something to see in which step this error occurs. If i get this info, i will update this topic. 

It drives me crazy.... ]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/16046/60529.page#60529</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/16046/60529.page#60529</link>
				<pubDate><![CDATA[Fri, 12 Feb 2010 05:13:04]]> GMT</pubDate>
				<author><![CDATA[ Passero]]></author>
			</item>
			<item>
				<title>Re:selectInputText does not get my list</title>
				<description><![CDATA[ I have some very strange behaviour... 

I don't know if it's because of icefaces or Liferay (were i deploy my portlets)... 
When i stop the tomcat server and wait a while and restart the server, i get the classcastexception for my Gemeente. I looked up the error and i have to return a List<SelectItem> 
But when i change my code and redeploy my war file, i get the behaviour described above. 
When i stop the tomcat server, wait an hour or so and try again, i get the error, when i redeply, the function doesn't get executed anymore... 

I noticed similiar behaviour from other components so i don't know if this is because of my architecture (liferay + icefaces) or something else... 

edit: I think i have solved this... THe thing is, the script that starts up my liferay server sets the timezone to GMT, i am at GMT+1 so when i deploy it has a conflict with the current time of the server. 
When i change the startup script so it uses gmt+1 and than restart the server and redeploy, everything works fine. 
I also changed the List to List<SelectItem> and now my autocomplete seems to work. 

Sorry for bothering you guys with this :) ]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/16018/60443.page#60443</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/16018/60443.page#60443</link>
				<pubDate><![CDATA[Wed, 10 Feb 2010 03:54:58]]> GMT</pubDate>
				<author><![CDATA[ Passero]]></author>
			</item>
			<item>
				<title>selectInputText does not get my list</title>
				<description><![CDATA[ I have a selectInputText that reteives a List from the manageBean and calls the updateList method from the same bean. 
I put a system.out in both my getList() and updateList(event) method and i notice that the updateList get's correctly called but i don't get an output from the getList. 
THerefore my list of elements does not appear. When i enter a value, my textbox gets reset and is empty again... 

What am i doing wrong here? 

THis is from my jsf:

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;ice:selectInputText rows="4" id="gemList"
									listVar="gemeente" 
									valueChangeListener="#{GemeenteBean.updateList}" 
									listValue="#{GemeenteBean.list}"&gt;
							&lt;f:facet name="selectInputText"&gt;
			                   &lt;ice:panelGrid columns="2" style="margin-bottom:-20p"&gt;
			                         &lt;ice:outputText value="#{gemeente.gemeente}"/&gt;
			                         &lt;ice:outputText value="#{gemeente.postcode}"/&gt;
			                   &lt;/ice:panelGrid&gt;
			              &lt;/f:facet&gt;
						&lt;/ice:selectInputText&gt;
</pre>
		</div>

And this is my bean

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
public class GemeenteBean 
{
	
	private Gemeente currentGemeente;
	private List&lt;Gemeente&gt; gemeentes;
	
	public List&lt;Gemeente&gt; getList&#40;&#41;
	{
		System.out.println&#40;"Get gemeente"&#41;;
		if&#40;gemeentes == null&#41;
			gemeentes = GemeenteController.getGemeentes&#40;&#41;;
		return gemeentes;
	}
	
	public void updateList&#40;ValueChangeEvent event&#41; 
	{
        System.out.println&#40;"New Value: " + event.getNewValue&#40;&#41;.toString&#40;&#41;&#41;;
        gemeentes = GemeenteController.getGemeentes&#40;event.getNewValue&#40;&#41;.toString&#40;&#41;&#41;;
        System.out.println&#40;"Count: " + gemeentes.size&#40;&#41;&#41;;
    }

}
</pre>
		</div>

WHen i watch the output i never see the "Get gemeente" but i always see the "New value " with the correct new value and the correct count... ]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/16018/60441.page#60441</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/16018/60441.page#60441</link>
				<pubDate><![CDATA[Wed, 10 Feb 2010 02:20:12]]> GMT</pubDate>
				<author><![CDATA[ Passero]]></author>
			</item>
			<item>
				<title>Re:dataTable and dataPaginator and rowSelector acts strange</title>
				<description><![CDATA[ Yes now it works. 
Also the issue with the rowSelector is solved. I was the same issue as i expected. 
THanks for the help]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/16007/60408.page#60408</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/16007/60408.page#60408</link>
				<pubDate><![CDATA[Tue, 9 Feb 2010 02:07:03]]> GMT</pubDate>
				<author><![CDATA[ Passero]]></author>
			</item>
			<item>
				<title>Re:dataTable and dataPaginator and rowSelector acts strange</title>
				<description><![CDATA[ Yes, i am rebuilding it again with each call:

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
public List&lt;Leerling&gt; getLeerlingen&#40;&#41;
	{
		
		Session session = HibernateUtil.getSessionFactory&#40;&#41;.getCurrentSession&#40;&#41;;
		session.beginTransaction&#40;&#41;;
		List result = session.createQuery&#40;"from Leerling order by naam,voornaam"&#41;.list&#40;&#41;;
		session.getTransaction&#40;&#41;.commit&#40;&#41;;
		return result;
	}
</pre>
		</div>

Do i have to take into account on which page i am in this method? Any examples on this because the tutorial seems not to tell this... 

Do i have to store this List the first time on the session and then not rebuild it from the Hibernate class but use the session object instead? Or what is the correct way to handle this?

edit: I just test this (with no changes) and it seems to work. Could it be that i first made a mistake and than it was some caching issue that i couldn't see the changes? 
However, my bean always executes the code from above so i don't have to do anything special to make this work, just clear my cache if i change something :)]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/16007/60406.page#60406</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/16007/60406.page#60406</link>
				<pubDate><![CDATA[Tue, 9 Feb 2010 01:38:44]]> GMT</pubDate>
				<author><![CDATA[ Passero]]></author>
			</item>
			<item>
				<title>dataTable and dataPaginator and rowSelector acts strange</title>
				<description><![CDATA[ I'm kinda new to iceFaces and i was doing a simple tutorial for the dataTables. 
I have a managedBean that returns a List to the dataTable and a normal POJO that represents an element from the list. 
I added the paginator below the table but it acts strange... 

WHen i press next, i have to press it 2 time before it goes to the next page. WHen i see the second page of my table and i press the next button again, i see the first records, not the 3th page of records. I have a total of 130+ records in my List. 
He tends to always go to the first page of the records, no matter what i do. 

Another thing... I also added the rowSelector which works quiet well, i put a simple System.out.println to my selectionListener to see if i get the correct value which is ok but when i select an item from the second page, i also return to the first page. 

I believe those issues are related. 
Do i have to add a new managedBean to keep track of the pages or what do i have to do? I can't seem to find a thing about this in the tutorial. 

THis is the code part of the table: 

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;ice:dataTable rows="20" id="llnTable" value="#{LeerlingManager.leerlingen}" var="lln"&gt;
								&lt;ice:column&gt;
					&lt;ice:rowSelector selectionListener="#{LeerlingManager.selectionListener}" value="#{lln.selected}" /&gt;
				&lt;/ice:column&gt;
				&lt;ice:column&gt;
					&lt;f:facet name="header"&gt;
						&lt;ice:outputText value="Voornaam"/&gt;
					&lt;/f:facet&gt;
					&lt;ice:outputText value="#{lln.voornaam}"/&gt;
				&lt;/ice:column&gt;
				&lt;ice:column&gt;
					&lt;f:facet name="header"&gt;
						&lt;ice:outputText value="Naam"/&gt;
					&lt;/f:facet&gt;
					&lt;ice:outputText value="#{lln.naam}"/&gt;
				&lt;/ice:column&gt;
			&lt;/ice:dataTable&gt;
			&lt;ice:dataPaginator id="dsLln"
                                   for="llnTable"
                                   paginator="true"
                                   fastStep="3"
                                   paginatorMaxPages="4"&gt;
                    &lt;f:facet name="first"&gt;
                        &lt;ice:outputText value="First"/&gt;
                    &lt;/f:facet&gt;
                    &lt;f:facet name="last"&gt;
                        &lt;ice:outputText value="Last"/&gt;
                    &lt;/f:facet&gt;
                    &lt;f:facet name="previous"&gt;
                       &lt;ice:outputText value="Previous"/&gt;
                    &lt;/f:facet&gt;
                    &lt;f:facet name="next"&gt;
                        &lt;ice:outputText value="Next"/&gt;
                    &lt;/f:facet&gt;
              &lt;/ice:dataPaginator&gt;
</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/16007/60391.page#60391</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/16007/60391.page#60391</link>
				<pubDate><![CDATA[Mon, 8 Feb 2010 15:23:29]]> GMT</pubDate>
				<author><![CDATA[ Passero]]></author>
			</item>
			<item>
				<title>Inter portlet communication</title>
				<description><![CDATA[ As far as i know, the icefaces implementation of the portlet bridge supports JSR 168 but not JSR 286 which enabled communication between portlets using parameters or events. 

I know some vendors who support JSR 168 but not 286 have their own method of inter portlet communication. 
Does icefaces have something so i can pass parameters, object or events from one portlet to another? 

Suppose i have a portlet that shows a dataTable and i have another portlet were the user can edit the row selected. How can i achieve this using the icefaces framework? 

I am using this on a liferay portal 5.2 by the way. ]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/15993/60363.page#60363</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/15993/60363.page#60363</link>
				<pubDate><![CDATA[Mon, 8 Feb 2010 02:06:04]]> GMT</pubDate>
				<author><![CDATA[ Passero]]></author>
			</item>
	</channel>
</rss>
