Sheila's Blog

Software Development

Sheila's Blog header image 5

Entries Tagged as 'seam'

Configuring Seam and Spring Batch

February 4th, 2010 No Comments

Seam provides jbpm for handling workflows, but doesn’t have anything dedicated so far to the issue of batch processing. While jbpm will handle complex business conditional steps, some steps are repetitive rather than complex and are better suited to a batch framework, like Spring Batch. In order to use Spring Batch with Seam, [...]

Tags:   ·

Configuring Icefaces and JBoss Seam Excel

August 20th, 2009 No Comments

As in Configuring Icefaces and Seam PDF, when you want to render excel pages in an application that already uses seam and icefaces, you need to use the default view handler for rendering the excel files.  So you need to follow some of the same steps…  Separate out the pages so that some are icefaces [...]

Tags:   ·

Configuring Icefaces and Seam PDF

August 17th, 2009 No Comments

Unfortunately seam-pdf doesn’t play nice with ICEfaces. Specifically, the D2DFaceletViewHandler doesn’t do pdf/email rendering. The workaround for this is to separate the application into ICEFaces (ice: tags) and Non-ICEFaces (h: tags) pages which are the ones that trigger a pdf or email render. You can replace icefaces.jar with just-ice.jar, which contains renderers [...]

Tags:   ·

Debugging Seam applications

April 3rd, 2009 No Comments

Seam provides two different pages that can be useful for debugging applications.  The Facelets Debug page which shows page-rendering errors, and the Seam Debug page which shows any uncaught application exceptions.
Enable the Facelets Debug Page:
In web.xml you set Facelets to development mode.
WEB-INF/web.xml
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
The Facelets debug page gives you the line number in [...]

Tags:   ·

Adding Facelets and Seam UI to your application

April 2nd, 2009 No Comments

It’s generally recommended in seam applications that Facelets be used instead of JSP.  JSP pages are processed by the JSP container at the same time as they’re processed by the JSF engine which can cause conflicts.  Performance is also improved when the JSP engine isn’t used.  Facelets is a templating framework that also gives access [...]

Tags:   ·

Beginner's introduction to Seam

March 13th, 2009 No Comments

A quick summary of what Seam is, and why you might be interested in learning more about it.

Tags:  

Passing a parameter to a page fragment in Seam

March 11th, 2009 No Comments

In the main .xhtml page within the ui:include tag you pass in a ui:param value:
<ui:include src=”#{fragmentPage}”>
<ui:param name=”location” value=”1″ />
</ui:include>
In the frament page you can reference the location value in the normal way:
<ice:outputText value=”#{manager.getLocation( ‘#{location}’)}” />
And can use that value to pass to a backing bean method called from the fragment.

Tags:  

Icefaces link issue in Seam – missing dataModel

March 9th, 2009 No Comments

The problem is:
We have a list of objects (we’ll call them Cars) displayed as results from a search in a seam web application. This is displayed as rows, iterating through the results to reference thisCar for the current result in each row. We want to be able to select one of the Cars [...]

Tags:   ·