Demian Seiler

Greenhorn
+ Follow
since Oct 20, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Demian Seiler

I know this is a fairly old post, but I am working on this same scenario.

Make sure that your jsp/servlets are enabled on your hosting account. By default they are disabled and I think after I submitted to have it enabled it was done within a day. Thus far I have been able to deploy a JSP app and a JSF 1.1 app successfully. I am working on getting facelets working up there now. As far as Tomcat 5.0.27 you have to dig a little to find it. Try this link to download it.

Apache Tomcat 5.0.27 Archive Directory

I will try to repost if I get facelets working.

13 years ago
JSF
I have used the RichFaces stuff for a while and have been happy with it overall with a few exceptions. But from an ajax standpoint I have been able to do everything I have wanted up to this point.

Try this:

Richfaces (ajax4jsf) Demo Site
[ September 16, 2008: Message edited by: Demian Seiler ]
14 years ago
JSF
I have found The Complete Reference by Shalk and Burns to be the best out there. The index and TOC are lacking, but the content is pretty good.

Amazon - The Complete Reference - Javaserver Faces
14 years ago
JSF
Hello All,

I am currently trying to get this component to work, but am having problems with the oncopyclick event in the a4j:support tag.

****************** CODE SAMPLE ***********************
<rich:listShuttle
sourceValue="#{backing_bean.newClubsList}"
targetValue="#{backing_bean.existingClubList}"
var="items"
id="shuttle"
sourceCaptionLabel="Available Clubs"
targetCaptionLabel="Currently Assigned Clubs">

<rich:column>
<h:outputText value="#{items.label}"></h:outputText>
</rich:column>

<a4j:support event="oncopyclick" action="#{backing_bean.copyCheck}" />

</rich:listShuttle>

****************** CODE SAMPLE ***********************

My issue at this point, is that my copyCheck method is never getting called. I see my new clubs on the left side and my existing clubs on the right. When I select an item from the left side(newClubsList) and click the "copy" button I see the item get moved over to the right side, but again, my copyCheck method is not getting clicked.

Any ideas?

Thanks for your assistance.

Demian
14 years ago
JSF
Hello,

The only change I made to get this to work was to download the following versions of the rich faces jars.

richfaces-api-3.1.0.jar
richfaces-impl-3.1.0.jar
richfaces-ui-3.1.0.jar

Other than that I did nothing different. I think this was just a bug in the version of the richfaces datatable.

Google on "download richfaces" and you should find the jars

Sorry if this doesn't help.

Demian
14 years ago
JSF
Ok, well I will respond to my own post.

I happened to update from the richfaces 3.0.1 to richfaces 3.1.0 to utilize a new component and as I was testing I noticed my tables appeared to be rendering correctly.

So there you have it in case anyone has this issue.

Demian
15 years ago
JSF
Ok, I am pretty sure I know my answer on this one, but I will put it out here in hopes someone has a different response.

I have a scenario where I am displaying a list of categorized items. For each category I am displaying a tab. Within each tab is a datatable that lists the items for that specific category. In the datatable I only render the column if the vehicleCategoryID matches the category for the tab selected. So if "Cars" has a categoryID of 1 and "Trucks" has a categoryID of 2 then when the first tab is selected I only render the column if the categoryID is 1. Notice I am using a single datatable here as it is much easier to create, manipulate, and read instead of the 7 different datatables I would have to create otherwise. At first glance this works great. When I click on the "Cars" tab I only see car models and when I click on the "Trucks" tab I see only truck models. The problem with this though is I noticed some odd spacing between some of the rows in the tables. Not horrible, but enough to throw the ui look off. Upon further inspection of the page source I found that the spacing between rows was caused by empty additional <tr> tags being added without any matching <td> tags. This is when I realized that even though the columns were not being rendered due to how I specified the rendered attribute, the rows were still being rendered. I suppose I made a mistake in assuming that if no columns were rendered, the rows would not be rendered either. See the pseudo-code below for an example of what I am talking about.

My question is obviously has anyone easily worked around this issue and gotten the <tr> tags to not render. I was hoping for an easy solution as I need to deploy this application shortly, but I am open to any responses on the matter.



For example pseudo-code:

(datamodel "vehicleDataModel" contains all data for both "Cars" and "Trucks")
...
<tab value="Cars">
<datatable value="backing.vehiclesDataModel" var="vehicleData">
<column rendered="#{vehicleData.vehicleCategoryID==1}">
<h:outputText value="#{vehicleData.vehicleModel}" />
</column>
</datatable>
</tab>
<tab value="Trucks">
<datatable value="backing.vehiclesDataModel" var="vehicleData">
<column rendered="#{vehicleData.vehicleCategoryID==2}">
<h:outputText value="#{vehicleData.vehicleModel}" />
</column>
</datatable>
</tab>
...



Thanks Again,

Demian
15 years ago
JSF
DOH! Well I feel sheepish. I do that just about everytime I start a new application. I always forget to drop that tag on the top of my pages. I had mistyped my backing bean name.

Thanks for the reminder.
15 years ago
JSF
Hello,

I have been hunting for a solution to my issue in these forums, in my books, and elswhere on the web.

Scenario:

I have an application that I have a main page called administrationhome.jsp that includes a left_navigation.jspf as shown here:
<%@ include file="WEB-INF/jspf/left_navigation.jspf" %>

As you can surmise this has links that users will click causing an action to action/outcome to occur as shown here:
<t:commandLink id="cmdlnk_usersearch" binding="#{leftNavigation_backing.linkUserSearch}" action="usersearch" value="#{components.commandlink_leftnav_usersearch}" styleClass="leftnavlink" immediate="true" />

Now I was hoping that I would just make the following entry in my faces-config for my navigation rule and all would be well, but all I get is a refreshing of my original screen:
<navigation-rule>
<display-name>
left_navigation
</display-name>
<from-view-id>
/administrationhome.jsp
</from-view-id>
<navigation-case>
<from-outcome>
usersearch
</from-outcome>
<to-view-id>
/usersearch.jsp
</to-view-id>
<redirect />
</navigation-case>
</navigation-rule>


The above did not work, so I tried the next configuration settings, but again all I get is a refreshing of my original screen:
<navigation-rule>
<display-name>
left_navigation
</display-name>
<from-view-id>
/WEB-INF/jspf/left_navigation.jsp
</from-view-id>
<navigation-case>
<from-outcome>
usersearch
</from-outcome>
<to-view-id>
/usersearch.jsp
</to-view-id>
<redirect />
</navigation-case>
</navigation-rule>


Is it possible to have the faces-config see what is in the WEB-INF directory?

Any help would be appreciated.

Demian
15 years ago
JSF
Good Morning,

I am looking for a way to override the default message provided by the Tomahawk validateEmail component. I know I can use message="WHAT EVER", but I want to set the summary to a different value than the detail. I was encouraged when the api doc shows attributes of summaryMessage and detailMessage, but when I tried to implement these were not found in the TLD. When I reviewed the TLD, sure enough these two attributes are not there. Chalk another one up to the always current Tomahawk doc.

With the other validators I have, I am using the f:attribute tags and a phase listener that uses the f:attribute as the detail and a value in my messagebundle for the summary.

For Example:

In my ErrorBundle.properties I have the following for required
>>javax.faces.component.UIInput.REQUIRED=*
javax.faces.component.UIInput.REQUIRED_detail=REQUIRED_MESSAGE_ID

The phase listener pulls all components that have messages if the detail matches REQUIRED_MESSAGE_ID then it uses the error message I defined in the f:attribute tag for the detail and the "*" I defined in the ErrorBundle.properties for the summary.

I would like to do the same thing for the Tomahawk emailValidator, but have been unsuccessful. Does anyone have any ideas on this one?

Thanks
16 years ago
JSF
I have searched through some of the other posts and found some good info, but I am still trying to figure out how to display a datatable using the tomahawk datatable component.

I have 2 tables and corresponding dto beans. The tables are Course Type and Course. The course table has the foreign key of course type id.

I want to display the following in JSF, but have been unable to do so. Any help would be appreciated.


<!-- *************************** BEGIN HTML ****************** -->
<html>
<body>
<table width="300">
<tr>
<td colspan="2">
Online Course
</td>
</tr>
<tr>
<td>
 
</td>
<td>
<input type="checkbox" />Course A
</td>
</tr>
<tr>
<td>
 
</td>
<td>
<input type="checkbox" />Course B
</td>
</tr>
<tr>
<td>
 
</td>
<td>
<input type="checkbox" />Course C
</td>
</tr>
<tr>
<td>
 
</td>
<td>
<input type="checkbox" />Course D
</td>
</tr>
<tr>
<td colspan="2">
In Class Course
</td>
</tr>
<tr>
<td>
 
</td>
<td>
<input type="checkbox" />Course E
</td>
</tr>
<tr>
<td>
 
</td>
<td>
<input type="checkbox" />Course F
</td>
</tr>
<tr>
<td colspan="2">
Video Course
</td>
</tr>
<tr>
<td>
 
</td>
<td>
<input type="checkbox" />Course G
</td>
</tr>
<tr>
<td>
 
</td>
<td>
<input type="checkbox" />Course H
</td>
</tr>
<tr>
<td>
 
</td>
<td>
<input type="checkbox" />Course I
</td>
</tr>
</table>
</body>
</html>
<!-- *************************** END HTML ****************** -->
Thanks,

Demsei
16 years ago
JSF