<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Messages posted by "kurzweil4"]]></title>
		<link>http://jforum.icesoft.org/JForum/posts/listByUser/9766.page</link>
		<description><![CDATA[Messages posted by "kurzweil4"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Re:UPDATE: How to Make InputText Have Focus after Validation Error?</title>
				<description><![CDATA[ (update ping)]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/11056/44827.page#44827</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/11056/44827.page#44827</link>
				<pubDate><![CDATA[Tue, 6 Jan 2009 20:15:51]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>UPDATE: How to Make InputText Have Focus after Validation Error?</title>
				<description><![CDATA[ UPDATE:

I found out how to get the IDs of the errored components in a phase listener. After that I do the following in the phase listener:

JavascriptContext.addJavascriptCall( fc, "document.getElementById( '" + clientId + "' ).focus();" );

When the error occurs, I can see the focus go to the input text component with the error, then strangely, the focus jumps to the button I used to submit the form.

Any ideas why the focus would jump to the submit button?

Thanks,
Kurzweil4

===========================================
I have pages with input text components, and I want the first one on each page that fails validation upon submission to have focus after the error message is displayed.

How can I do this in a general way without having to make a backing bean specific to each page with a bind for each components which manually checks the component?

Thanks,
Kurzweil4
]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/11056/44777.page#44777</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/11056/44777.page#44777</link>
				<pubDate><![CDATA[Tue, 6 Jan 2009 02:32:51]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>Re:How to Apply a Style to All inputText Components?</title>
				<description><![CDATA[ <p></p>

		<cite>kamal.osho wrote:</cite><br>
		<blockquote>Hi,
Try to override this class attributes in your custom css file.

.iceOutTxt {
    < Your attributes >
}

Don't forget to put the link for your custom css file below the icefaces css files links, as sequnce also matters.

Regards,
Kamal. &nbsp;
		</blockquote>

It worked!

Thanks,
Kurzweil4]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/9925/41060.page#41060</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/9925/41060.page#41060</link>
				<pubDate><![CDATA[Mon, 29 Sep 2008 19:32:05]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>How to Apply a Style to All inputText Components?</title>
				<description><![CDATA[ 
I want to change the font size of ALL inputText components. How can I do that without changing the CSS file that comes with ICEfaces?

Thanks,
Kurzweil4
]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/9925/41019.page#41019</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/9925/41019.page#41019</link>
				<pubDate><![CDATA[Sun, 28 Sep 2008 22:08:43]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>Will commandSortHeader Header Text Style Issue Be Fixed in Next Release?</title>
				<description><![CDATA[ 
Will the issue with the commandSortHeader header text losing the style when it is a sorted column be fixed with the next release?

This seems to be an issue that a lot of people a problem with: http://www.icefaces.org/JForum/posts/list/7956.page

The following snippet seems to patch the problem somewhat:

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
.iceCmdSrtHdr table {
	margin-left: auto;
	margin-right: auto;
	font-weight: bold;
}
</pre>
		</div>

It fixes the centering issue in Explorer, Opera, Safari, and Firefox, but only keeps the same font weight in Firefox and Safari.

Anyway, this "seems" to be a pretty obvious bug?

Kurzweil4


]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/9551/39763.page#39763</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/9551/39763.page#39763</link>
				<pubDate><![CDATA[Thu, 21 Aug 2008 21:18:15]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>Re:Problem Using partialSubmit=true inputText with &quot;Cancel&quot; Button on Form</title>
				<description><![CDATA[ 
ICEfaces 1.7.1 (Facelets version) for MyEclipse
Sun Application Server 9.1 (Glassfish 2)

No other libraries except for the normal things needed to run a JEE5 app.

<p></p>

		<cite>patrick.corless wrote:</cite><br>
		<blockquote>I'm still perplexed by this behaviour.  Could post which version of ICEfaces you are using plus any other integration libraries, Facelets, Seam etc.  It shouldn't matter but what server are you sunning on. &nbsp;
		</blockquote>]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/9513/39755.page#39755</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/9513/39755.page#39755</link>
				<pubDate><![CDATA[Thu, 21 Aug 2008 18:06:13]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>Re:Problem Using partialSubmit=true inputText with &quot;Cancel&quot; Button on Form</title>
				<description><![CDATA[ 
I tried it with the partialSubmit being true and false on the Cancel button. It didn't make a difference for me.

This seems to be what is happening:

When the cancel button is clicked, the onBlur JavaScript event fires for the field, causing a new lifecycle, and the Cancel button click does not occur.

And at the end of the lifecycle, the Cancel button has focus, so the onBlur of the input field does not fire when the Cancel button is clicked the second time.

What do you think?

<p></p>

		<cite>patrick.corless wrote:</cite><br>
		<blockquote>Very strange, can you double check that the cancel button has immediate="true" and partialsubmit="true".  &nbsp;
		</blockquote>]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/9513/39731.page#39731</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/9513/39731.page#39731</link>
				<pubDate><![CDATA[Thu, 21 Aug 2008 07:17:57]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>Re:Problem Using partialSubmit=true inputText with &quot;Cancel&quot; Button on Form</title>
				<description><![CDATA[ 
Thanks for the response. I forgot to mention that the immediate property is set to true for the Cancel button. The problem still occurs.

<p></p>

		<cite>patrick.corless wrote:</cite><br>
		<blockquote>Try adding immediate="true" on the Cancel button.  This should do the trick. &nbsp;
		</blockquote>]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/9513/39649.page#39649</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/9513/39649.page#39649</link>
				<pubDate><![CDATA[Tue, 19 Aug 2008 18:48:29]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>Re:commandSortHeader Will Not Appear with Arrow on Initial Page Load</title>
				<description><![CDATA[ Through trial and error I found a solution, although there truly seems to be a bug in the data table component. It does not seem to read the sort column from the backing bean on the initial page load [BUG], and does not set the ascending property in the backing bean until the render response phase [BUG].

The solution is to create and initialize your own HtmlDataTable component when the backing bean is created, and assign it to the property the tag will be bound to. In this initialization, set the sort column on the data table instance.

Also, create an action listener to manage your own ascending property (since it is not available in the invoke application phase [BUG], and you need this in order to resort the data):

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
public class CustomerListBackingBean extends BackingBeanSuper {
	@EJB
	private CsaCustomersFacadeLocal ccf;
	private CsaCustomers editedCustomer;
	private HtmlDataTable dataTable;
	private final String numberColumn = CsaCustomers.Columns.NUMBER.toString&#40;&#41;;
	private final String nameColumn = CsaCustomers.Columns.NAME.toString&#40;&#41;;
	private String currSortColumn;
	private boolean currAscending = true;
	private List&lt; CsaCustomers &gt; customerList;
	
	public CustomerListBackingBean&#40;&#41; {
		this.currSortColumn = this.numberColumn;
		this.dataTable = new HtmlDataTable&#40;&#41;;
		this.dataTable.setSortColumn&#40; this.currSortColumn &#41;;
	}
	
	@PostConstruct
	public void postConstruct&#40;&#41; {
		this.customerList = ccf.findAll&#40; CsaCustomers.Columns.getFromString&#40; this.currSortColumn &#41;, this.currAscending &#41;;
	}
	
	public void clickPaginatorActionListener&#40; ActionEvent ae &#41; {
		this.editedCustomer = null;
	}
	
	public void sortHeaderClickActionListener&#40; ActionEvent ae &#41; {		
		if &#40; ae.getSource&#40;&#41; instanceof CommandSortHeader &#41; {
			CommandSortHeader csh = &#40; CommandSortHeader &#41; ae.getSource&#40;&#41;;
			
			if &#40; this.dataTable.getSortColumn&#40;&#41; == csh.getColumnName&#40;&#41; &#41; {
				this.currAscending = ! this.currAscending;
			}
			else {
				this.currAscending = true;
			}
			
			this.customerList = ccf.findAll&#40; CsaCustomers.Columns.getFromString&#40; csh.getColumnName&#40;&#41; &#41;, this.currAscending &#41;;
		}
	}

	public List&lt; CsaCustomers &gt; getAllCustomers&#40;&#41; {
		return this.customerList;
	}
	
	public String saveCustomerAction&#40;&#41; {
		int index;
		
		ccf.update&#40; this.editedCustomer &#41;;
		
		index = this.customerList.indexOf&#40; this.dataTable.getRowData&#40;&#41; &#41;;
		this.customerList.remove&#40; index &#41;;
		this.customerList.add&#40; index, this.editedCustomer &#41;;
		
		this.editedCustomer = null;
		
		return null;
	}

	public HtmlDataTable getCustomerTable&#40;&#41; {
		return this.dataTable;
	}

	public void setCustomerTable&#40; HtmlDataTable dataTable &#41; {
		this.dataTable = dataTable;
	}

	public String getSortColumn&#40;&#41; {
		return this.currSortColumn;
	}

	public void setSortColumn&#40; String sortColumn &#41; {
		this.currSortColumn = sortColumn;
	}
	
	public String getNumberColumn&#40;&#41; {
		return this.numberColumn;
	}

	public String getNameColumn&#40;&#41; {
		return this.nameColumn;
	}

	public boolean isAscending&#40;&#41; {
		return this.currAscending;
	}

	public void setAscending&#40; boolean ascending &#41; {
		this.currAscending = ascending;
	}
}
</pre>
		</div>

]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/9471/39607.page#39607</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/9471/39607.page#39607</link>
				<pubDate><![CDATA[Mon, 18 Aug 2008 23:58:11]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>Re:EJB Inyection in Faces Manage Bean with ICE Faces</title>
				<description><![CDATA[ Make sure your web.xml version is set to 2.5. I struggled with this same problem, and it was that my version was 2.4. I was told that injection will only happen with version 2.5.

Here is my thread:

<a href='http://www.icefaces.org/JForum/posts/list/9254.page' target='_new' rel="nofollow">http://www.icefaces.org/JForum/posts/list/9254.page</a>

Kurzweil4
]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/9512/39605.page#39605</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/9512/39605.page#39605</link>
				<pubDate><![CDATA[Mon, 18 Aug 2008 23:07:23]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>Problem Using partialSubmit=true inputText with &quot;Cancel&quot; Button on Form</title>
				<description><![CDATA[ 
I have a form with an inputText and 2 buttons: one "Save" and one "Cancel". For the inputText, I have partial submit set to true, because I want immediate validation.

The problem is that when the inputText value is invalid, and the "Cancel" button is clicked, this causes the onBlur on the inputText to fire, which causes a validation error to appear.

What this does is make it seem that the cancel button must be clicked twice to cancel the edit. Is there any way around this? Is it possible for a partial submit inputText and a cancel button to co-exists?

Thanks,
Kurzweil4
]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/9513/39604.page#39604</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/9513/39604.page#39604</link>
				<pubDate><![CDATA[Mon, 18 Aug 2008 23:04:16]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>SOLVED (bug workarounds): commandSortHeader Will Not Appear with Arrow on Initial Page Load</title>
				<description><![CDATA[ I have a simple dataTable with a commandSortHeader. The problem I have having is that the commandSortHeader does not display sorted with an arrow by default like the component showcase dataTable, even though the sortHeader attribute of the dataTable matches the columnName attribute of the commandSortHeader.

The page outputs the two column names that should match, for testing purposes, and they do.

Here is the sequence of events:

-page loads
-column header is without arrow
-click header
-arrow appears, but sort order does not change
-click header again
-sort order of column changes

Am I doing something wrong? My code is below.

Thanks in Advance for Any Help,
Kurzweil4

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;f:view&gt;
	&lt;ice:form partialSubmit="true"&gt;
		&lt;ice:outputText value="Sort Column: #{customerListBacking.sortColumn}" /&gt;
		&lt;ice:outputText value=" Number Column: #{customerListBacking.numberColumn}" /&gt;
		&lt;ice:dataTable border="0" var="row"
			value="#{customerListBacking.allCustomers}"
			sortHeader="#{customerListBacking.sortColumn}"
			sortAscending="#{customerListBacking.ascending}"&gt;
			&lt;ice:column id="column1"&gt;
				&lt;f:facet name="header"&gt;
					&lt;ice:commandSortHeader
						columnName="#{customerListBacking.numberColumn}"&gt;
						&lt;ice:outputText value="Number" /&gt;
					&lt;/ice:commandSortHeader&gt;
				&lt;/f:facet&gt;
				&lt;ice:outputText value="#{row.number}" /&gt;
			&lt;/ice:column&gt;
			&lt;ice:column id="column2"&gt;
				&lt;f:facet name="header"&gt;
					&lt;ice:outputText value="Name" /&gt;
				&lt;/f:facet&gt;
				&lt;ice:outputText value="#{row.name}" /&gt;
			&lt;/ice:column&gt;
		&lt;/ice:dataTable&gt;
	&lt;/ice:form&gt;
&lt;/f:view&gt;
</pre>
		</div>

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
public class CustomerListBackingBean {
	@EJB
	private CsaCustomersFacadeLocal ccf;
	private final String numberColumn = CsaCustomers.Columns.NUMBER.toString&#40;&#41;;
	private final String nameColumn = CsaCustomers.Columns.NAME.toString&#40;&#41;;
	private String currSortColumn;
	private boolean currAscending = true;

	
	public CustomerListBackingBean&#40;&#41; {
		this.currSortColumn = this.numberColumn;
	}

	public List&lt; CsaCustomers &gt; getAllCustomers&#40;&#41; {
		return ccf.findAll&#40; CsaCustomers.Columns.getFromString&#40; this.currSortColumn &#41;, this.currAscending &#41;;
	}

	public String getSortColumn&#40;&#41; {
		return this.currSortColumn;
	}

	public void setSortColumn&#40; String sortColumn &#41; {
		this.currSortColumn = sortColumn;
	}
	
	public String getNumberColumn&#40;&#41; {
		return this.numberColumn;
	}

	public String getNameColumn&#40;&#41; {
		return this.nameColumn;
	}

	public boolean isAscending&#40;&#41; {
		return this.currAscending;
	}

	public void setAscending&#40; boolean ascending &#41; {
		this.currAscending = ascending;
	}
}
</pre>
		</div>



]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/9471/39475.page#39475</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/9471/39475.page#39475</link>
				<pubDate><![CDATA[Wed, 13 Aug 2008 23:07:02]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>Re:commandSortHeader Text Loses Default Style After Selected</title>
				<description><![CDATA[ 
Thanks for the response. I will try that.

So is this a bug, or is it intentional?

Thanks,
Kurzweil4

<p></p>

		<cite>priyanka wrote:</cite><br>
		<blockquote>This will happen because we are not using the default style sheets of icefaces. include these styleclasses in your .css file and check.

.iceCmdSrtHdr td { 
	font-weight: normal; 
	text-align: center; 
	color: purple;
	font-style: normal; 
	font-family: Arial, Helvetica, sans-serif; 
	font-size: 8pt;
	text-decoration: underline;
	font-weight: bold;
} 

.iceCmdSrtHdr-dis {
    text-decoration: none;
    /*border: 1px solid #ABABAB;*/
    color: #999999;
    width: 100%;
    height: 100%;
    padding: 0px;
    display: block;
    cursor: default;
}

html .iceCmdSrtHdr {
    height: 1%;
}&nbsp;
		</blockquote>]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/9450/39457.page#39457</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/9450/39457.page#39457</link>
				<pubDate><![CDATA[Wed, 13 Aug 2008 11:02:46]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>commandSortHeader Text Loses Default Style After Selected</title>
				<description><![CDATA[ 
I have a data table, and a few commandSortHeader components using the standard ICEfaces themes. When the page first loads, the style of the text in the header matches all of the other columns, but after being clicked, and the arrow appears, the text loses its styling and no longer matches the other headers. In fact, it seems to contain no style at all after that. It contains no color or font weight given to the other headers by the theme.

This seems to be a bug. Is this supposed to happen?

Thanks,
Kurzweil4


]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/9450/39401.page#39401</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/9450/39401.page#39401</link>
				<pubDate><![CDATA[Tue, 12 Aug 2008 12:11:57]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>Re:EJB Injection Stops Working After Adding ICEFaces</title>
				<description><![CDATA[ 
Philip,

Is it necessary for the faces-config.xml to be changed to 1.1? I also changed the version of this file back up to 1.2, and my EAR deployed and ran with no problems.

Ryan

<p></p>

		<cite>philip.breau wrote:</cite><br>
		<blockquote>No problem. Sorry, i forgot only we can close jiras. We should probably try to keep the set web.xml version in our IDE plugins. I'll create another jira for that. I don't believe that the web.xml version has anything to do with the JSF 1.1 compatibility, which is just set by the faces-config version. But EJB injection won't work unless you're running under Servlet spec 2.5.

Philip&nbsp;
		</blockquote>]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/preList/9254/38834.page#38834</guid>
				<link>http://jforum.icesoft.org/JForum/posts/preList/9254/38834.page#38834</link>
				<pubDate><![CDATA[Thu, 31 Jul 2008 11:02:04]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
	</channel>
</rss>
